summaryrefslogtreecommitdiffstats
path: root/views/widget/widget_win.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-16 18:12:09 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-16 18:12:09 +0000
commit63b8201d4abcbfcc9d27ce3b410e6206e19d64c5 (patch)
treec35d6a8f0f9afcd66dfa31f3db8d0643074ac8ea /views/widget/widget_win.h
parent063002ca22759a0f70108956dd5f4c0a74d8fcda (diff)
downloadchromium_src-63b8201d4abcbfcc9d27ce3b410e6206e19d64c5.zip
chromium_src-63b8201d4abcbfcc9d27ce3b410e6206e19d64c5.tar.gz
chromium_src-63b8201d4abcbfcc9d27ce3b410e6206e19d64c5.tar.bz2
Re-lands:
Add native capture API to Widget, and fix a bug in Window where we wouldn't let the window be closed from the X. BUG=72040 TEST=none R=sky Review URL: http://codereview.chromium.org/6670049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget_win.h')
-rw-r--r--views/widget/widget_win.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/views/widget/widget_win.h b/views/widget/widget_win.h
index 9779bd8..47863c7 100644
--- a/views/widget/widget_win.h
+++ b/views/widget/widget_win.h
@@ -142,11 +142,6 @@ class WidgetWin : public ui::WindowImpl,
return ::ShowWindow(GetNativeView(), command);
}
- HWND SetCapture() {
- DCHECK(::IsWindow(GetNativeView()));
- return ::SetCapture(GetNativeView());
- }
-
HWND GetParent() const {
return ::GetParent(GetNativeView());
}
@@ -208,6 +203,9 @@ class WidgetWin : public ui::WindowImpl,
virtual void* GetNativeWindowProperty(const char* name) OVERRIDE;
virtual TooltipManager* GetTooltipManager() const OVERRIDE;
virtual bool IsScreenReaderActive() const OVERRIDE;
+ virtual void SetNativeCapture() OVERRIDE;
+ virtual void ReleaseNativeCapture() OVERRIDE;
+ virtual bool HasNativeCapture() const OVERRIDE;
virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE;
virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE;
virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
@@ -416,9 +414,6 @@ class WidgetWin : public ui::WindowImpl,
scoped_refptr<DropTargetWin> drop_target_;
- // Whether or not we have capture the mouse.
- bool has_capture_;
-
// If true, the mouse is currently down.
bool is_mouse_down_;