diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-14 23:26:05 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-14 23:26:05 +0000 |
commit | ae57efd76a9bf4bb4d01b009e38d7f7c9b2f9e00 (patch) | |
tree | da1aa7ecc6ea17ce49d3bf2bda23eca8245853d5 /views | |
parent | ddddfda8583100f3cb9dbba4ee1bc5ca5e87a770 (diff) | |
download | chromium_src-ae57efd76a9bf4bb4d01b009e38d7f7c9b2f9e00.zip chromium_src-ae57efd76a9bf4bb4d01b009e38d7f7c9b2f9e00.tar.gz chromium_src-ae57efd76a9bf4bb4d01b009e38d7f7c9b2f9e00.tar.bz2 |
Add const to HasKeyboardCapture
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7374006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/widget/native_widget_gtk.cc | 2 | ||||
-rw-r--r-- | views/widget/native_widget_gtk.h | 2 | ||||
-rw-r--r-- | views/widget/native_widget_private.h | 2 | ||||
-rw-r--r-- | views/widget/native_widget_views.cc | 2 | ||||
-rw-r--r-- | views/widget/native_widget_views.h | 2 | ||||
-rw-r--r-- | views/widget/native_widget_win.cc | 2 | ||||
-rw-r--r-- | views/widget/native_widget_win.h | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/views/widget/native_widget_gtk.cc b/views/widget/native_widget_gtk.cc index d9dd8d2..887383f 100644 --- a/views/widget/native_widget_gtk.cc +++ b/views/widget/native_widget_gtk.cc @@ -966,7 +966,7 @@ void NativeWidgetGtk::ReleaseKeyboardCapture() { } } -bool NativeWidgetGtk::HasKeyboardCapture() { +bool NativeWidgetGtk::HasKeyboardCapture() const { return has_keyboard_grab_; } diff --git a/views/widget/native_widget_gtk.h b/views/widget/native_widget_gtk.h index 7c99e94..951bcac 100644 --- a/views/widget/native_widget_gtk.h +++ b/views/widget/native_widget_gtk.h @@ -171,7 +171,7 @@ class NativeWidgetGtk : public internal::NativeWidgetPrivate, virtual bool HasMouseCapture() const OVERRIDE; virtual void SetKeyboardCapture() OVERRIDE; virtual void ReleaseKeyboardCapture() OVERRIDE; - virtual bool HasKeyboardCapture() OVERRIDE; + virtual bool HasKeyboardCapture() const OVERRIDE; virtual InputMethod* GetInputMethodNative() OVERRIDE; virtual void ReplaceInputMethod(InputMethod* input_method) OVERRIDE; virtual void CenterWindow(const gfx::Size& size) OVERRIDE; diff --git a/views/widget/native_widget_private.h b/views/widget/native_widget_private.h index e1b6955..5139c1f 100644 --- a/views/widget/native_widget_private.h +++ b/views/widget/native_widget_private.h @@ -130,7 +130,7 @@ class NativeWidgetPrivate : public NativeWidget { virtual void ReleaseKeyboardCapture() = 0; // Returns true if this native widget is capturing keyboard events. - virtual bool HasKeyboardCapture() = 0; + virtual bool HasKeyboardCapture() const = 0; // Returns the InputMethod for this native widget. // Note that all widgets in a widget hierarchy share the same input method. diff --git a/views/widget/native_widget_views.cc b/views/widget/native_widget_views.cc index 05fa3cd..3bc341d 100644 --- a/views/widget/native_widget_views.cc +++ b/views/widget/native_widget_views.cc @@ -218,7 +218,7 @@ void NativeWidgetViews::ReleaseKeyboardCapture() { GetParentNativeWidget()->ReleaseKeyboardCapture(); } -bool NativeWidgetViews::HasKeyboardCapture() { +bool NativeWidgetViews::HasKeyboardCapture() const { return GetParentNativeWidget()->HasKeyboardCapture(); } diff --git a/views/widget/native_widget_views.h b/views/widget/native_widget_views.h index f1acf63..5ac14eb 100644 --- a/views/widget/native_widget_views.h +++ b/views/widget/native_widget_views.h @@ -71,7 +71,7 @@ class NativeWidgetViews : public internal::NativeWidgetPrivate, virtual bool HasMouseCapture() const OVERRIDE; virtual void SetKeyboardCapture() OVERRIDE; virtual void ReleaseKeyboardCapture() OVERRIDE; - virtual bool HasKeyboardCapture() OVERRIDE; + virtual bool HasKeyboardCapture() const OVERRIDE; virtual InputMethod* GetInputMethodNative() OVERRIDE; virtual void ReplaceInputMethod(InputMethod* input_method) OVERRIDE; virtual void CenterWindow(const gfx::Size& size) OVERRIDE; diff --git a/views/widget/native_widget_win.cc b/views/widget/native_widget_win.cc index ce2ab4e..6d6f141 100644 --- a/views/widget/native_widget_win.cc +++ b/views/widget/native_widget_win.cc @@ -633,7 +633,7 @@ void NativeWidgetWin::ReleaseKeyboardCapture() { // Windows doesn't really support keyboard grabs. } -bool NativeWidgetWin::HasKeyboardCapture() { +bool NativeWidgetWin::HasKeyboardCapture() const { // Windows doesn't really support keyboard grabs. return false; } diff --git a/views/widget/native_widget_win.h b/views/widget/native_widget_win.h index 6fea855..ea89239 100644 --- a/views/widget/native_widget_win.h +++ b/views/widget/native_widget_win.h @@ -218,7 +218,7 @@ class NativeWidgetWin : public ui::WindowImpl, virtual bool HasMouseCapture() const OVERRIDE; virtual void SetKeyboardCapture() OVERRIDE; virtual void ReleaseKeyboardCapture() OVERRIDE; - virtual bool HasKeyboardCapture() OVERRIDE; + virtual bool HasKeyboardCapture() const OVERRIDE; virtual InputMethod* GetInputMethodNative() OVERRIDE; virtual void ReplaceInputMethod(InputMethod* input_method) OVERRIDE; virtual void CenterWindow(const gfx::Size& size) OVERRIDE; |