diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-12 22:49:05 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-12 22:49:05 +0000 |
commit | 5a7bbf90d01a28fd873c103ec23520c7add7b8fe (patch) | |
tree | 7fe8f07c13a1337452b1dccf0c19cc461aaf2833 /views/widget/native_widget_win.h | |
parent | 1f427ffae010c8221677e3a2988b6a0bf95d98fe (diff) | |
download | chromium_src-5a7bbf90d01a28fd873c103ec23520c7add7b8fe.zip chromium_src-5a7bbf90d01a28fd873c103ec23520c7add7b8fe.tar.gz chromium_src-5a7bbf90d01a28fd873c103ec23520c7add7b8fe.tar.bz2 |
Gets mouse capture to work for menus with pure views. As part of this
I moved what was in menu_host_gtk into native_widget_gtk. Gtk supports
two grab types, both mouse and key. We only want key grab when showing
menus.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7346003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/native_widget_win.h')
-rw-r--r-- | views/widget/native_widget_win.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/widget/native_widget_win.h b/views/widget/native_widget_win.h index eb8d391..965eb6d 100644 --- a/views/widget/native_widget_win.h +++ b/views/widget/native_widget_win.h @@ -216,6 +216,9 @@ class NativeWidgetWin : public ui::WindowImpl, virtual void SetMouseCapture() OVERRIDE; virtual void ReleaseMouseCapture() OVERRIDE; virtual bool HasMouseCapture() const OVERRIDE; + virtual void SetKeyboardCapture() OVERRIDE; + virtual void ReleaseKeyboardCapture() OVERRIDE; + virtual bool HasKeyboardCapture() OVERRIDE; virtual InputMethod* GetInputMethodNative() OVERRIDE; virtual void ReplaceInputMethod(InputMethod* input_method) OVERRIDE; virtual void CenterWindow(const gfx::Size& size) OVERRIDE; |