| 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 | 78 |
| 79 protected: | 79 protected: |
| 80 friend class Widget; | 80 friend class Widget; |
| 81 | 81 |
| 82 // Returns a handle for the underlying native widget that can be used for | 82 // Returns a handle for the underlying native widget that can be used for |
| 83 // accelerated drawing. | 83 // accelerated drawing. |
| 84 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; | 84 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; |
| 85 | 85 |
| 86 // Widget pass-thrus, private to Views. -------------------------------------- | 86 // Widget pass-thrus, private to Views. -------------------------------------- |
| 87 // See method documentation in Widget. | 87 // See method documentation in Widget. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 103 virtual void RunShellDrag(View* view, | 103 virtual void RunShellDrag(View* view, |
| 104 const ui::OSExchangeData& data, | 104 const ui::OSExchangeData& data, |
| 105 int operation) = 0; | 105 int operation) = 0; |
| 106 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; | 106 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; |
| 107 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 107 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace views | 110 } // namespace views |
| 111 | 111 |
| 112 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ | 112 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ |
| OLD | NEW |