Chromium Code Reviews| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 155 enum ShowState { | 155 enum ShowState { |
| 156 SHOW_RESTORED, | 156 SHOW_RESTORED, |
| 157 SHOW_MAXIMIZED, | 157 SHOW_MAXIMIZED, |
| 158 SHOW_INACTIVE | 158 SHOW_INACTIVE |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 // Returns a handle for the underlying native widget that can be used for | 161 // Returns a handle for the underlying native widget that can be used for |
| 162 // accelerated drawing. | 162 // accelerated drawing. |
| 163 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; | 163 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; |
| 164 | 164 |
| 165 // Makes the NativeWindow modal. | |
|
tfarina
2011/06/08 22:30:42
nit: NativeWindow -> NativeWidget?
| |
| 166 virtual void BecomeModal() = 0; | |
| 167 | |
| 165 // Widget pass-thrus, private to Views. -------------------------------------- | 168 // Widget pass-thrus, private to Views. -------------------------------------- |
| 166 // See method documentation in Widget. | 169 // See method documentation in Widget. |
| 167 virtual gfx::Rect GetWindowScreenBounds() const = 0; | 170 virtual gfx::Rect GetWindowScreenBounds() const = 0; |
| 168 virtual gfx::Rect GetClientAreaScreenBounds() const = 0; | 171 virtual gfx::Rect GetClientAreaScreenBounds() const = 0; |
| 169 virtual gfx::Rect GetRestoredBounds() const = 0; | 172 virtual gfx::Rect GetRestoredBounds() const = 0; |
| 170 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 173 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
| 171 virtual void SetSize(const gfx::Size& size) = 0; | 174 virtual void SetSize(const gfx::Size& size) = 0; |
| 172 virtual void SetBoundsConstrained(const gfx::Rect& bounds, | 175 virtual void SetBoundsConstrained(const gfx::Rect& bounds, |
| 173 Widget* other_widget) = 0; | 176 Widget* other_widget) = 0; |
| 174 virtual void MoveAbove(gfx::NativeView native_view) = 0; | 177 virtual void MoveAbove(gfx::NativeView native_view) = 0; |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 198 virtual void RunShellDrag(View* view, | 201 virtual void RunShellDrag(View* view, |
| 199 const ui::OSExchangeData& data, | 202 const ui::OSExchangeData& data, |
| 200 int operation) = 0; | 203 int operation) = 0; |
| 201 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; | 204 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; |
| 202 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 205 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
| 203 }; | 206 }; |
| 204 | 207 |
| 205 } // namespace views | 208 } // namespace views |
| 206 | 209 |
| 207 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ | 210 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ |
| OLD | NEW |