diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 05:38:37 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 05:38:37 +0000 |
commit | e9621112681353ce4ce280022e8349bf2b9b44d2 (patch) | |
tree | e6e98b64d463127f7bc4acbf963f66125a245186 /content/browser/tab_contents/tab_contents.h | |
parent | 330f859c55aaba3694a1aa64d0ff6dd967af58b5 (diff) | |
download | chromium_src-e9621112681353ce4ce280022e8349bf2b9b44d2.zip chromium_src-e9621112681353ce4ce280022e8349bf2b9b44d2.tar.gz chromium_src-e9621112681353ce4ce280022e8349bf2b9b44d2.tar.bz2 |
Add async interface for RenderWidgetHost to ask for user's permission to lock the mouse.
This will be needed when adding mouse lock bubble infobar UI.
BUG=95136
TEST=None
Review URL: http://codereview.chromium.org/8306019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/tab_contents/tab_contents.h')
-rw-r--r-- | content/browser/tab_contents/tab_contents.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h index d2542fa..49b9c9f 100644 --- a/content/browser/tab_contents/tab_contents.h +++ b/content/browser/tab_contents/tab_contents.h @@ -470,6 +470,11 @@ class CONTENT_EXPORT TabContents : public PageNavigator, // the pending WebUI, the committed WebUI, or NULL. WebUI* GetWebUIForCurrentState(); + // Called when the reponse to a pending mouse lock request has arrived. + // Returns true if |allowed| is true and the mouse has been successfully + // locked. + bool GotResponseToLockMouseRequest(bool allowed); + protected: friend class TabContentsObserver; @@ -692,6 +697,8 @@ class CONTENT_EXPORT TabContents : public PageNavigator, virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE; virtual bool IsFullscreenForCurrentTab() const OVERRIDE; virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE; + virtual void RequestToLockMouse() OVERRIDE; + virtual void LostMouseLock() OVERRIDE; // RenderViewHostManager::Delegate ------------------------------------------- |