diff options
author | rdevlin.cronin <rdevlin.cronin@chromium.org> | 2015-07-09 10:36:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-09 17:37:20 +0000 |
commit | c3d6ba1b13ec1f050178e4f97c121b528c07520d (patch) | |
tree | f635cdcaf99a8e2abf7507c227e1e2038d733f1d /extensions/renderer/app_window_custom_bindings.h | |
parent | 58b04162d300a4c9b067cf281c83823094c0aeb5 (diff) | |
download | chromium_src-c3d6ba1b13ec1f050178e4f97c121b528c07520d.zip chromium_src-c3d6ba1b13ec1f050178e4f97c121b528c07520d.tar.gz chromium_src-c3d6ba1b13ec1f050178e4f97c121b528c07520d.tar.bz2 |
[Extensions OOPI] Update app window bindings for OOPI
Update the app window custom bindings to use render frame logic
instead of render view logic. This involves changes to the custom
bindings themselves, as well as app window creation logic. And, for fun,
a few small cleanups while I was in the area.
BUG=455776
TBR=dbeam@chromium.org (webui)
Review URL: https://codereview.chromium.org/1211003006
Cr-Commit-Position: refs/heads/master@{#338076}
Diffstat (limited to 'extensions/renderer/app_window_custom_bindings.h')
-rw-r--r-- | extensions/renderer/app_window_custom_bindings.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/extensions/renderer/app_window_custom_bindings.h b/extensions/renderer/app_window_custom_bindings.h index 04f7194..68786a0 100644 --- a/extensions/renderer/app_window_custom_bindings.h +++ b/extensions/renderer/app_window_custom_bindings.h @@ -8,23 +8,24 @@ #include "extensions/renderer/object_backed_native_handler.h" namespace extensions { -class Dispatcher; +class ScriptContextSet; // Implements custom bindings for the app.window API. class AppWindowCustomBindings : public ObjectBackedNativeHandler { public: - AppWindowCustomBindings(Dispatcher* dispatcher, ScriptContext* context); + AppWindowCustomBindings(const ScriptContextSet* script_context_set, + ScriptContext* context); private: - void GetView(const v8::FunctionCallbackInfo<v8::Value>& args); + void GetFrame(const v8::FunctionCallbackInfo<v8::Value>& args); // Return string containing the HTML <template> for the <window-controls> // custom element. void GetWindowControlsHtmlTemplate( const v8::FunctionCallbackInfo<v8::Value>& args); - // Dispatcher handle. Not owned. - Dispatcher* dispatcher_; + // ScriptContextSet handle. Not owned. + const ScriptContextSet* script_context_set_; DISALLOW_COPY_AND_ASSIGN(AppWindowCustomBindings); }; |