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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 288113005: <webview>: Cleanup Pointer Lock & Simplify HandleKeyboardEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary braces Created 6 years, 7 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/browser/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 782816227092dfa9c82eac67210bd12001900ebd..61fea1cb080b70dd6c1bd45b64d9098ac418ea7c 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -105,6 +105,10 @@ class CONTENT_EXPORT BrowserPluginGuest
// Returns a WeakPtr to this BrowserPluginGuest.
base::WeakPtr<BrowserPluginGuest> AsWeakPtr();
+ // Sets the lock state of the pointer. Returns true if |allowed| is true and
+ // the mouse has been successfully locked.
+ bool LockMouse(bool allowed);
+
// Called when the embedder WebContents is destroyed to give the
// BrowserPluginGuest an opportunity to clean up after itself.
void EmbedderDestroyed();
@@ -140,9 +144,6 @@ class CONTENT_EXPORT BrowserPluginGuest
// Returns the BrowserPluginGuest that created this guest, if any.
BrowserPluginGuest* GetOpener() const;
- // Returns whether the mouse pointer was unlocked.
- bool UnlockMouseIfNecessary(const NativeWebKeyboardEvent& event);
-
void UpdateVisibility();
void CopyFromCompositingSurface(
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698