OLD | NEW |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // GetContentWindow takes in a RenderView routing ID and returns the | 43 // GetContentWindow takes in a RenderView routing ID and returns the |
44 // Window JavaScript object for that RenderView. | 44 // Window JavaScript object for that RenderView. |
45 void GetContentWindow(const v8::FunctionCallbackInfo<v8::Value>& args); | 45 void GetContentWindow(const v8::FunctionCallbackInfo<v8::Value>& args); |
46 | 46 |
47 // RegisterDestructionCallback registers a JavaScript callback function to be | 47 // RegisterDestructionCallback registers a JavaScript callback function to be |
48 // called when the guestview's container is destroyed. | 48 // called when the guestview's container is destroyed. |
49 // RegisterDestructionCallback takes in a single paramater, |callback|. | 49 // RegisterDestructionCallback takes in a single paramater, |callback|. |
50 void RegisterDestructionCallback( | 50 void RegisterDestructionCallback( |
51 const v8::FunctionCallbackInfo<v8::Value>& args); | 51 const v8::FunctionCallbackInfo<v8::Value>& args); |
52 | 52 |
| 53 void AttachIframeGuest(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 54 void IsSitePerProcess(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 55 |
53 // RegisterElementResizeCallback registers a JavaScript callback function to | 56 // RegisterElementResizeCallback registers a JavaScript callback function to |
54 // be called when the element is resized. RegisterElementResizeCallback takes | 57 // be called when the element is resized. RegisterElementResizeCallback takes |
55 // a single parameter, |callback|. | 58 // a single parameter, |callback|. |
56 void RegisterElementResizeCallback( | 59 void RegisterElementResizeCallback( |
57 const v8::FunctionCallbackInfo<v8::Value>& args); | 60 const v8::FunctionCallbackInfo<v8::Value>& args); |
58 | 61 |
59 // Runs a JavaScript function with user gesture. | 62 // Runs a JavaScript function with user gesture. |
60 // | 63 // |
61 // This is used to request webview element to enter fullscreen (from the | 64 // This is used to request webview element to enter fullscreen (from the |
62 // embedder). | 65 // embedder). |
63 // Note that the guest requesting fullscreen means it has already been | 66 // Note that the guest requesting fullscreen means it has already been |
64 // triggered by a user gesture and we get to this point if embedder allows | 67 // triggered by a user gesture and we get to this point if embedder allows |
65 // the fullscreen request to proceed. | 68 // the fullscreen request to proceed. |
66 void RunWithGesture( | 69 void RunWithGesture( |
67 const v8::FunctionCallbackInfo<v8::Value>& args); | 70 const v8::FunctionCallbackInfo<v8::Value>& args); |
68 }; | 71 }; |
69 | 72 |
70 } // namespace extensions | 73 } // namespace extensions |
71 | 74 |
72 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ | 75 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ |
OLD | NEW |