| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 virtual gfx::Rect GetWindowScreenBounds() const = 0; | 135 virtual gfx::Rect GetWindowScreenBounds() const = 0; |
| 136 virtual gfx::Rect GetClientAreaScreenBounds() const = 0; | 136 virtual gfx::Rect GetClientAreaScreenBounds() const = 0; |
| 137 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 137 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
| 138 virtual void SetSize(const gfx::Size& size) = 0; | 138 virtual void SetSize(const gfx::Size& size) = 0; |
| 139 virtual void MoveAbove(gfx::NativeView native_view) = 0; | 139 virtual void MoveAbove(gfx::NativeView native_view) = 0; |
| 140 virtual void SetShape(gfx::NativeRegion shape) = 0; | 140 virtual void SetShape(gfx::NativeRegion shape) = 0; |
| 141 virtual void Close() = 0; | 141 virtual void Close() = 0; |
| 142 virtual void CloseNow() = 0; | 142 virtual void CloseNow() = 0; |
| 143 virtual void Show() = 0; | 143 virtual void Show() = 0; |
| 144 virtual void Hide() = 0; | 144 virtual void Hide() = 0; |
| 145 virtual void SetOpacity(unsigned char opacity) = 0; |
| 146 virtual void SetAlwaysOnTop(bool on_top) = 0; |
| 145 virtual bool IsVisible() const = 0; | 147 virtual bool IsVisible() const = 0; |
| 146 virtual void Activate() = 0; | |
| 147 virtual void Deactivate() = 0; | |
| 148 virtual bool IsActive() const = 0; | 148 virtual bool IsActive() const = 0; |
| 149 virtual void SetAlwaysOnTop(bool always_on_top) = 0; | |
| 150 virtual void Maximize() = 0; | |
| 151 virtual void Minimize() = 0; | |
| 152 virtual bool IsMaximized() const = 0; | |
| 153 virtual bool IsMinimized() const = 0; | |
| 154 virtual void Restore() = 0; | |
| 155 virtual void SetOpacity(unsigned char opacity) = 0; | |
| 156 virtual bool IsAccessibleWidget() const = 0; | 149 virtual bool IsAccessibleWidget() const = 0; |
| 157 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; | 150 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; |
| 158 virtual void RunShellDrag(View* view, | 151 virtual void RunShellDrag(View* view, |
| 159 const ui::OSExchangeData& data, | 152 const ui::OSExchangeData& data, |
| 160 int operation) = 0; | 153 int operation) = 0; |
| 161 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; | 154 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; |
| 162 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 155 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
| 163 }; | 156 }; |
| 164 | 157 |
| 165 } // namespace views | 158 } // namespace views |
| 166 | 159 |
| 167 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ | 160 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ |
| OLD | NEW |