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

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

Issue 972313002: Make <webview> use out-of-process iframe architecture. (Closed) Base URL: ssh://saopaulo.wat/mnt/dev/shared/src@testoopif2z-better-chrome
Patch Set: Rebase after swapped out changes major rework with RFP Created 5 years, 6 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 <map> 8 #include <map>
9 9
10 #include "extensions/renderer/object_backed_native_handler.h" 10 #include "extensions/renderer/object_backed_native_handler.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // GetViewFromID takes a view ID, and returns the GuestView element associated 57 // GetViewFromID takes a view ID, and returns the GuestView element associated
58 // with that ID, if one exists. Otherwise, null is returned. 58 // with that ID, if one exists. Otherwise, null is returned.
59 void GetViewFromID(const v8::FunctionCallbackInfo<v8::Value>& args); 59 void GetViewFromID(const v8::FunctionCallbackInfo<v8::Value>& args);
60 60
61 // RegisterDestructionCallback registers a JavaScript callback function to be 61 // RegisterDestructionCallback registers a JavaScript callback function to be
62 // called when the guestview's container is destroyed. 62 // called when the guestview's container is destroyed.
63 // RegisterDestructionCallback takes in a single paramater, |callback|. 63 // RegisterDestructionCallback takes in a single paramater, |callback|.
64 void RegisterDestructionCallback( 64 void RegisterDestructionCallback(
65 const v8::FunctionCallbackInfo<v8::Value>& args); 65 const v8::FunctionCallbackInfo<v8::Value>& args);
66 66
67 void AttachIframeGuest(const v8::FunctionCallbackInfo<v8::Value>& args);
68
67 // RegisterElementResizeCallback registers a JavaScript callback function to 69 // RegisterElementResizeCallback registers a JavaScript callback function to
68 // be called when the element is resized. RegisterElementResizeCallback takes 70 // be called when the element is resized. RegisterElementResizeCallback takes
69 // a single parameter, |callback|. 71 // a single parameter, |callback|.
70 void RegisterElementResizeCallback( 72 void RegisterElementResizeCallback(
71 const v8::FunctionCallbackInfo<v8::Value>& args); 73 const v8::FunctionCallbackInfo<v8::Value>& args);
72 74
73 // RegisterView takes in a view ID and a GuestView element, and stores the 75 // RegisterView takes in a view ID and a GuestView element, and stores the
74 // pair as an entry in |view_map_|. The view can then be retrieved using 76 // pair as an entry in |view_map_|. The view can then be retrieved using
75 // GetViewFromID. 77 // GetViewFromID.
76 void RegisterView(const v8::FunctionCallbackInfo<v8::Value>& args); 78 void RegisterView(const v8::FunctionCallbackInfo<v8::Value>& args);
77 79
78 // Runs a JavaScript function with user gesture. 80 // Runs a JavaScript function with user gesture.
79 // 81 //
80 // This is used to request webview element to enter fullscreen (from the 82 // This is used to request webview element to enter fullscreen (from the
81 // embedder). 83 // embedder).
82 // Note that the guest requesting fullscreen means it has already been 84 // Note that the guest requesting fullscreen means it has already been
83 // triggered by a user gesture and we get to this point if embedder allows 85 // triggered by a user gesture and we get to this point if embedder allows
84 // the fullscreen request to proceed. 86 // the fullscreen request to proceed.
85 void RunWithGesture( 87 void RunWithGesture(
86 const v8::FunctionCallbackInfo<v8::Value>& args); 88 const v8::FunctionCallbackInfo<v8::Value>& args);
87 }; 89 };
88 90
89 } // namespace extensions 91 } // namespace extensions
90 92
91 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ 93 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698