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

Side by Side Diff: extensions/renderer/guest_view/guest_view_internal_custom_bindings.h

Issue 497103002: Move ChromeExtensionHostMsg_AttachGuest to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move guest_view_internal register to dispatcher in extensions. Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_EXTENSIONS_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ 5 #ifndef EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
6 #define CHROME_RENDERER_EXTENSIONS_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ 6 #define EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
7 7
8 #include "extensions/renderer/object_backed_native_handler.h" 8 #include "extensions/renderer/object_backed_native_handler.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 class Dispatcher; 11 class Dispatcher;
12 12
13 // Implements custom bindings for the guestViewInternal API. 13 // Implements custom bindings for the guestViewInternal API.
14 class GuestViewInternalCustomBindings : public ObjectBackedNativeHandler { 14 class GuestViewInternalCustomBindings : public ObjectBackedNativeHandler {
15 public: 15 public:
16 explicit GuestViewInternalCustomBindings(ScriptContext* context); 16 explicit GuestViewInternalCustomBindings(ScriptContext* context);
17 17
18 private: 18 private:
19 // AttachGuest attaches a GuestView to a provided container element. Once 19 // AttachGuest attaches a GuestView to a provided container element. Once
20 // attached, the GuestView will participate in layout of the container page 20 // attached, the GuestView will participate in layout of the container page
21 // and become visible on screen. 21 // and become visible on screen.
22 // AttachGuest takes three parameters: 22 // AttachGuest takes three parameters:
23 // |element_instance_id| uniquely identifies a container within the content 23 // |element_instance_id| uniquely identifies a container within the content
24 // module is able to host GuestViews. 24 // module is able to host GuestViews.
25 // |guest_instance_id| uniquely identifies an unattached GuestView. 25 // |guest_instance_id| uniquely identifies an unattached GuestView.
26 // |attach_params| is typically used to convey the current state of the 26 // |attach_params| is typically used to convey the current state of the
27 // container element at the time of attachment. These parameters are passed 27 // container element at the time of attachment. These parameters are passed
28 // down to the GuestView. The GuestView may use these parameters to update the 28 // down to the GuestView. The GuestView may use these parameters to update the
29 // state of the guest hosted in another process. 29 // state of the guest hosted in another process.
30 void AttachGuest(const v8::FunctionCallbackInfo<v8::Value>& args); 30 void AttachGuest(const v8::FunctionCallbackInfo<v8::Value>& args);
31 }; 31 };
32 32
33 } // namespace extensions 33 } // namespace extensions
34 34
35 #endif // CHROME_RENDERER_EXTENSIONS_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ 35 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW
« no previous file with comments | « extensions/renderer/guest_view/OWNERS ('k') | extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698