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

Unified Diff: chrome/browser/extensions/extension_function_dispatcher.h

Issue 434046: Support for chrome.experimental.popup API in ExternalTabContainer views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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
Index: chrome/browser/extensions/extension_function_dispatcher.h
===================================================================
--- chrome/browser/extensions/extension_function_dispatcher.h (revision 34039)
+++ chrome/browser/extensions/extension_function_dispatcher.h (working copy)
@@ -9,6 +9,7 @@
#include <set>
#include <vector>
+#include "app/gfx/native_widget_types.h"
#include "base/ref_counted.h"
#include "googleurl/src/gurl.h"
@@ -33,7 +34,12 @@
public:
class Delegate {
public:
- virtual Browser* GetBrowser() = 0;
+ virtual Browser* GetBrowser() const = 0;
+
+ // Returns the gfx::NativeWindow that contains the view hosting the
+ // environment in which the function dispatcher resides.
+ virtual gfx::NativeWindow GetFrameNativeWindow();
+
virtual ExtensionHost* GetExtensionHost() { return NULL; }
virtual ExtensionDOMUI* GetExtensionDOMUI() { return NULL; }
};
@@ -94,6 +100,12 @@
// non-tab-hosted extension pages, this will return NULL.
ExtensionDOMUI* GetExtensionDOMUI();
+ // Returns the gfx::NativeWindow that frames the view of the extension
+ // containing the function dispatcher. This may return NULL. Refer to the
+ // ExtensionFunctionDispatcher::Delegate::GetFrameNativeWindow()
+ // implementation for an explanation.
+ gfx::NativeWindow GetFrameNativeWindow();
+
// Gets the extension the function is being invoked by. This should not ever
// return NULL.
Extension* GetExtension();

Powered by Google App Engine
This is Rietveld 408576698