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

Unified Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 239113007: <webview>: Move pointerLock permission to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_downloads_to_chrome
Patch Set: Created 6 years, 8 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: content/public/browser/browser_plugin_guest_delegate.h
diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h
index 573658b6f23a9a469ca6e81037b7e0ee30c11e91..2ea53676d007d862d3e0232fa4d5c4d6168fc39b 100644
--- a/content/public/browser/browser_plugin_guest_delegate.h
+++ b/content/public/browser/browser_plugin_guest_delegate.h
@@ -110,11 +110,18 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate {
const MediaStreamRequest& request,
const MediaResponseCallback& callback);
- // Asks the delegate if the given tab can download.
+ // Asks the delegate if the given guest can download.
// Invoking the |callback| synchronously is OK.
virtual void CanDownload(const std::string& request_method,
const GURL& url,
const base::Callback<void(bool)>& callback);
+
+ // Asks the delegate if the given guest can lock the pointer.
+ // Invoking the |callback| synchronously is OK.
+ virtual void RequestPointerLockPermission(
+ bool user_gesture,
+ bool last_unlocked_by_target,
+ const base::Callback<void(bool)>& callback) {}
};
} // namespace content
« no previous file with comments | « content/common/browser_plugin/browser_plugin_constants.cc ('k') | content/public/common/browser_plugin_permission_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698