Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: views/widget/native_widget.h

Issue 6756043: Consolidate Widget Event code, other cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Additional code consolidation, move base defs, nix MakeMSG, TooltipManager cleanup, etc. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/widget/aero_tooltip_manager.cc ('k') | views/widget/native_widget_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual void* GetNativeWindowProperty(const char* name) = 0; 63 virtual void* GetNativeWindowProperty(const char* name) = 0;
64 64
65 // Returns the native widget's tooltip manager. Called from the View hierarchy 65 // Returns the native widget's tooltip manager. Called from the View hierarchy
66 // to update tooltips. 66 // to update tooltips.
67 virtual TooltipManager* GetTooltipManager() const = 0; 67 virtual TooltipManager* GetTooltipManager() const = 0;
68 68
69 // Returns true if a system screen reader is active for the NativeWidget. 69 // Returns true if a system screen reader is active for the NativeWidget.
70 virtual bool IsScreenReaderActive() const = 0; 70 virtual bool IsScreenReaderActive() const = 0;
71 71
72 // Sets or releases event capturing for this native widget. 72 // Sets or releases event capturing for this native widget.
73 virtual void SetNativeCapture() = 0; 73 virtual void SetMouseCapture() = 0;
74 virtual void ReleaseNativeCapture() = 0; 74 virtual void ReleaseMouseCapture() = 0;
75 75
76 // Returns true if this native widget is capturing all events. 76 // Returns true if this native widget is capturing all events.
77 virtual bool HasNativeCapture() const = 0; 77 virtual bool HasMouseCapture() const = 0;
78
79 // Returns whether capture should be released on mouse release.
80 virtual bool ShouldReleaseCaptureOnMouseReleased() const = 0;
Ben Goodger (Google) 2011/03/31 14:13:03 I think this method should be declared/defined on
msw 2011/03/31 14:47:25 Done.
78 81
79 protected: 82 protected:
80 friend class Widget; 83 friend class Widget;
81 84
82 // Returns a handle for the underlying native widget that can be used for 85 // Returns a handle for the underlying native widget that can be used for
83 // accelerated drawing. 86 // accelerated drawing.
84 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; 87 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0;
85 88
86 // Widget pass-thrus, private to Views. -------------------------------------- 89 // Widget pass-thrus, private to Views. --------------------------------------
87 // See method documentation in Widget. 90 // See method documentation in Widget.
(...skipping 15 matching lines...) Expand all
103 virtual void RunShellDrag(View* view, 106 virtual void RunShellDrag(View* view,
104 const ui::OSExchangeData& data, 107 const ui::OSExchangeData& data,
105 int operation) = 0; 108 int operation) = 0;
106 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; 109 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0;
107 virtual void SetCursor(gfx::NativeCursor cursor) = 0; 110 virtual void SetCursor(gfx::NativeCursor cursor) = 0;
108 }; 111 };
109 112
110 } // namespace views 113 } // namespace views
111 114
112 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ 115 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « views/widget/aero_tooltip_manager.cc ('k') | views/widget/native_widget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698