summaryrefslogtreecommitdiffstats
path: root/views/widget
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-26 20:51:02 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-26 20:51:02 +0000
commit40e59f901bc45d009b01b5252dc1e6140ba67642 (patch)
tree880793e36522e87653c88b867b6e166d2a8d33c2 /views/widget
parent34831e0d903dc77863f64096e73f136f4742269b (diff)
downloadchromium_src-40e59f901bc45d009b01b5252dc1e6140ba67642.zip
chromium_src-40e59f901bc45d009b01b5252dc1e6140ba67642.tar.gz
chromium_src-40e59f901bc45d009b01b5252dc1e6140ba67642.tar.bz2
Attempt 2 at landing bookmark menus.
The build breakage was the result of a bad ifdef in MenuController, specifically around the OnKeyDown method. BUG=none TEST=none TBR=ben@chromium.org Review URL: http://codereview.chromium.org/173517 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget')
-rw-r--r--views/widget/widget_gtk.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/widget/widget_gtk.h b/views/widget/widget_gtk.h
index 8f356fb..7de1492 100644
--- a/views/widget/widget_gtk.h
+++ b/views/widget/widget_gtk.h
@@ -156,6 +156,9 @@ class WidgetGtk : public Widget, public MessageLoopForUI::Observer {
void set_mouse_down(bool mouse_down) { is_mouse_down_ = mouse_down; }
+ // Do we own the mouse grab?
+ bool has_capture() const { return has_capture_; }
+
// Returns whether capture should be released on mouse release. The default
// is true.
virtual bool ReleaseCaptureOnMouseReleased() { return true; }
@@ -164,7 +167,7 @@ class WidgetGtk : public Widget, public MessageLoopForUI::Observer {
void DoGrab();
// Releases a grab done by this widget.
- void ReleaseGrab();
+ virtual void ReleaseGrab();
// Sets the WindowGtk in the userdata section of the widget.
static void SetWindowForNative(GtkWidget* widget, WindowGtk* window);