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

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

Issue 984963004: <webview>: Implement fullscreen permission for html5 element.requestFullscreen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tmptmptmp
Patch Set: Disable one test one test on mac with bug ref, use document.webkitIsFullScreen 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698