Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: public/web/WebWidget.h

Issue 26564006: Cleanup: Add conversion interface for WebWidget derived classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWidget.h
diff --git a/public/web/WebWidget.h b/public/web/WebWidget.h
index f511ad39124ee82a81da644235ce804065258da8..73fcca58db780a0f49d03d55320a41a45b61db0a 100644
--- a/public/web/WebWidget.h
+++ b/public/web/WebWidget.h
@@ -220,6 +220,13 @@ public:
// to render its contents.
virtual bool isAcceleratedCompositingActive() const { return false; }
+ // Returns true if the WebWidget created is of type WebPagePopup.
+ virtual bool isPagePopup() const { return false; }
+ // Returns true if the WebWidget created is of type WebPopupMenu.
+ virtual bool isPopupMenu() const { return false; }
+ // Returns true if the WebWidget created is of type WebHelperPlugin.
+ virtual bool isHelperPlugin() const { return false; }
+
// The WebLayerTreeView initialized on this WebWidgetClient will be going away and
// is no longer safe to access.
virtual void willCloseLayerTreeView() { }
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698