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

Unified Diff: Source/web/WebHelperPluginImpl.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/ChromeClientImpl.cpp ('k') | Source/web/WebPagePopupImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebHelperPluginImpl.h
diff --git a/Source/web/WebHelperPluginImpl.h b/Source/web/WebHelperPluginImpl.h
index d7ed9d3ebabd36b7437235991530e3ad8c70ed5a..93f38f994827037fe9618c4b343ae095470bf82f 100644
--- a/Source/web/WebHelperPluginImpl.h
+++ b/Source/web/WebHelperPluginImpl.h
@@ -72,6 +72,7 @@ private:
virtual void layout() OVERRIDE;
virtual void setFocus(bool) OVERRIDE;
virtual void close() OVERRIDE;
+ virtual bool isHelperPlugin() const OVERRIDE { return true; }
WebWidgetClient* m_widgetClient;
WebViewImpl* m_webView;
@@ -83,6 +84,12 @@ private:
friend class HelperPluginChromeClient;
};
+inline WebHelperPluginImpl* toWebHelperPluginImpl(WebWidget* widget)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!widget || widget->isHelperPlugin());
+ return static_cast<WebHelperPluginImpl*>(widget);
+}
+
} // namespace WebKit
#endif // WebHelperPluginImpl_h
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | Source/web/WebPagePopupImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698