Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_ |
| 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/views/views_export.h" | 9 #include "ui/views/views_export.h" |
| 10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 // Passes through a message to show the RootWindow, if it exists. | 24 // Passes through a message to show the RootWindow, if it exists. |
| 25 virtual void ShowRootWindow() = 0; | 25 virtual void ShowRootWindow() = 0; |
| 26 | 26 |
| 27 // If we own a RootWindow, return it. Otherwise NULL. | 27 // If we own a RootWindow, return it. Otherwise NULL. |
| 28 virtual aura::RootWindow* GetRootWindow() = 0; | 28 virtual aura::RootWindow* GetRootWindow() = 0; |
| 29 | 29 |
| 30 // If this NativeWidgetAura has its own RootWindow, sets the position at the | 30 // If this NativeWidgetAura has its own RootWindow, sets the position at the |
| 31 // |root_window_|, and returns modified bounds to set the origin to | 31 // |root_window_|, and returns modified bounds to set the origin to |
| 32 // zero. Otherwise, pass through in_bounds. | 32 // zero. Otherwise, pass through in_bounds. |
| 33 virtual gfx::Rect ModifyAndSetBounds(gfx::Rect bounds) = 0; | 33 virtual gfx::Rect ModifyAndSetBounds(gfx::Rect bounds) = 0; |
| 34 | |
| 35 // Takes bounds relative to the RootWindow and changes them to be relative to | |
| 36 // the screen. | |
| 37 virtual gfx::Rect ChangeRootWindowBoundsToScreenBounds(gfx::Rect bounds) = 0; | |
|
sky
2012/04/24 22:42:28
const gfx::Rect&
| |
| 34 }; | 38 }; |
| 35 | 39 |
| 36 } // namespace views | 40 } // namespace views |
| 37 | 41 |
| 38 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_ | 42 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_HELPER_AURA_H_ |
| OLD | NEW |