diff options
Diffstat (limited to 'chrome/renderer/extensions/extension_process_bindings.h')
-rw-r--r-- | chrome/renderer/extensions/extension_process_bindings.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/renderer/extensions/extension_process_bindings.h b/chrome/renderer/extensions/extension_process_bindings.h index bea3e91..1777658 100644 --- a/chrome/renderer/extensions/extension_process_bindings.h +++ b/chrome/renderer/extensions/extension_process_bindings.h @@ -11,10 +11,12 @@ #include <string> #include <vector> +#include "chrome/common/view_types.h" #include "v8/include/v8.h" class GURL; class URLPattern; +class WebView; class ExtensionProcessBindings { public: @@ -36,7 +38,7 @@ class ExtensionProcessBindings { // Sets the host permissions for a particular extension. static void SetHostPermissions(const GURL& extension_url, - const std::vector<URLPattern>& permissions); + const std::vector<URLPattern>& permissions); // Check if the extension in the currently running context has permission to // access the given extension function. Must be called with a valid V8 @@ -47,6 +49,11 @@ class ExtensionProcessBindings { // denied. Must be called with a valid V8 context in scope. static v8::Handle<v8::Value> ThrowPermissionDeniedException( const std::string& function_name); + + // For EXTENSION_* |type| values, adds/replaces a special class name on to + // the document element (e.g. "extension_toolstrip", "extension_mole") so + // that the page can use CSS rules to control its display appropriately. + static void SetViewType(WebView* view, ViewType::Type type); }; #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_ |