| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // Widget pass-thrus, private to Views. -------------------------------------- | 164 // Widget pass-thrus, private to Views. -------------------------------------- |
| 165 // See method documentation in Widget. | 165 // See method documentation in Widget. |
| 166 virtual gfx::Rect GetWindowScreenBounds() const = 0; | 166 virtual gfx::Rect GetWindowScreenBounds() const = 0; |
| 167 virtual gfx::Rect GetClientAreaScreenBounds() const = 0; | 167 virtual gfx::Rect GetClientAreaScreenBounds() const = 0; |
| 168 virtual gfx::Rect GetRestoredBounds() const = 0; | 168 virtual gfx::Rect GetRestoredBounds() const = 0; |
| 169 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 169 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
| 170 virtual void SetSize(const gfx::Size& size) = 0; | 170 virtual void SetSize(const gfx::Size& size) = 0; |
| 171 virtual void SetBoundsConstrained(const gfx::Rect& bounds, | 171 virtual void SetBoundsConstrained(const gfx::Rect& bounds, |
| 172 Widget* other_widget) = 0; | 172 Widget* other_widget) = 0; |
| 173 virtual void MoveAbove(gfx::NativeView native_view) = 0; | 173 virtual void MoveAbove(gfx::NativeView native_view) = 0; |
| 174 virtual void MoveToTop() = 0; |
| 174 virtual void SetShape(gfx::NativeRegion shape) = 0; | 175 virtual void SetShape(gfx::NativeRegion shape) = 0; |
| 175 virtual void Close() = 0; | 176 virtual void Close() = 0; |
| 176 virtual void CloseNow() = 0; | 177 virtual void CloseNow() = 0; |
| 177 virtual void EnableClose(bool enable) = 0; | 178 virtual void EnableClose(bool enable) = 0; |
| 178 virtual void Show() = 0; | 179 virtual void Show() = 0; |
| 179 virtual void Hide() = 0; | 180 virtual void Hide() = 0; |
| 180 virtual void ShowNativeWidget(ShowState state) = 0; | 181 virtual void ShowNativeWidget(ShowState state) = 0; |
| 181 virtual bool IsVisible() const = 0; | 182 virtual bool IsVisible() const = 0; |
| 182 virtual void Activate() = 0; | 183 virtual void Activate() = 0; |
| 183 virtual void Deactivate() = 0; | 184 virtual void Deactivate() = 0; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 197 virtual void RunShellDrag(View* view, | 198 virtual void RunShellDrag(View* view, |
| 198 const ui::OSExchangeData& data, | 199 const ui::OSExchangeData& data, |
| 199 int operation) = 0; | 200 int operation) = 0; |
| 200 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; | 201 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; |
| 201 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 202 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
| 202 }; | 203 }; |
| 203 | 204 |
| 204 } // namespace views | 205 } // namespace views |
| 205 | 206 |
| 206 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ | 207 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ |
| OLD | NEW |