| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // RegisterElementResizeCallback registers a JavaScript callback function to | 53 // RegisterElementResizeCallback registers a JavaScript callback function to |
| 54 // be called when the element is resized. RegisterElementResizeCallback takes | 54 // be called when the element is resized. RegisterElementResizeCallback takes |
| 55 // a single parameter, |callback|. | 55 // a single parameter, |callback|. |
| 56 void RegisterElementResizeCallback( | 56 void RegisterElementResizeCallback( |
| 57 const v8::FunctionCallbackInfo<v8::Value>& args); | 57 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 58 |
| 59 // Runs a JavaScript function with user gesture. |
| 60 // |
| 61 // This is used to request webview element to enter fullscreen (from the |
| 62 // embedder). |
| 63 // 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 |
| 65 // the fullscreen request to proceed. |
| 66 void RunWithGesture( |
| 67 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 58 }; | 68 }; |
| 59 | 69 |
| 60 } // namespace extensions | 70 } // namespace extensions |
| 61 | 71 |
| 62 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ | 72 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ |
| OLD | NEW |