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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: extensions/renderer/guest_view/guest_view_internal_custom_bindings.h
diff --git a/extensions/renderer/guest_view/guest_view_internal_custom_bindings.h b/extensions/renderer/guest_view/guest_view_internal_custom_bindings.h
index 2c191373f4460cf477bf916a33d0f44e4082c011..b28634f0f49685a0f254b3d9a369baf53f6fd69e 100644
--- a/extensions/renderer/guest_view/guest_view_internal_custom_bindings.h
+++ b/extensions/renderer/guest_view/guest_view_internal_custom_bindings.h
@@ -55,6 +55,16 @@ class GuestViewInternalCustomBindings : public ObjectBackedNativeHandler {
// a single parameter, |callback|.
void RegisterElementResizeCallback(
const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Runs a JavaScript function with user gesture.
+ //
+ // This is used to request webview element to enter fullscreen (from the
+ // embedder).
+ // Note that the guest requesting fullscreen means it has already been
+ // triggered by a user gesture and we get to this point if embedder allows
+ // the fullscreen request to proceed.
+ void RunWithGesture(
+ const v8::FunctionCallbackInfo<v8::Value>& args);
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698