OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |