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

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

Issue 910073003: <webview>: Make contentWindow available prior to attachment (on display:none). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit Created 5 years, 9 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 EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ 5 #ifndef EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
6 #define EXTENSIONS_RENDERER_GUEST_VIEW_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 {
(...skipping 22 matching lines...) Expand all
33 void AttachGuest(const v8::FunctionCallbackInfo<v8::Value>& args); 33 void AttachGuest(const v8::FunctionCallbackInfo<v8::Value>& args);
34 34
35 // DetachGuest detaches the container container specified from the associated 35 // DetachGuest detaches the container container specified from the associated
36 // GuestViewBase. DetachGuest takes two parameters: 36 // GuestViewBase. DetachGuest takes two parameters:
37 // |element_instance_id| uniquely identifies a container within the content 37 // |element_instance_id| uniquely identifies a container within the content
38 // module is able to host GuestViews. 38 // module is able to host GuestViews.
39 // |callback| is an optional callback that is called once the container has 39 // |callback| is an optional callback that is called once the container has
40 // been detached. 40 // been detached.
41 void DetachGuest(const v8::FunctionCallbackInfo<v8::Value>& args); 41 void DetachGuest(const v8::FunctionCallbackInfo<v8::Value>& args);
42 42
43 // GetContentWindow takes in a RenderView routing ID and returns the
44 // Window JavaScript object for that RenderView.
45 void GetContentWindow(const v8::FunctionCallbackInfo<v8::Value>& args);
46
43 // RegisterDestructionCallback registers a JavaScript callback function to be 47 // RegisterDestructionCallback registers a JavaScript callback function to be
44 // called when the guestview's container is destroyed. 48 // called when the guestview's container is destroyed.
45 // RegisterDestructionCallback takes in a single paramater, |callback|. 49 // RegisterDestructionCallback takes in a single paramater, |callback|.
46 void RegisterDestructionCallback( 50 void RegisterDestructionCallback(
47 const v8::FunctionCallbackInfo<v8::Value>& args); 51 const v8::FunctionCallbackInfo<v8::Value>& args);
48 52
49 // RegisterElementResizeCallback registers a JavaScript callback function to 53 // RegisterElementResizeCallback registers a JavaScript callback function to
50 // be called when the element is resized. RegisterElementResizeCallback takes 54 // be called when the element is resized. RegisterElementResizeCallback takes
51 // a single parameter, |callback|. 55 // a single parameter, |callback|.
52 void RegisterElementResizeCallback( 56 void RegisterElementResizeCallback(
53 const v8::FunctionCallbackInfo<v8::Value>& args); 57 const v8::FunctionCallbackInfo<v8::Value>& args);
54 }; 58 };
55 59
56 } // namespace extensions 60 } // namespace extensions
57 61
58 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ 62 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698