| 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_AURA_WINDOW_H_ | 5 #ifndef UI_AURA_WINDOW_H_ |
| 6 #define UI_AURA_WINDOW_H_ | 6 #define UI_AURA_WINDOW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // Returns true if this window and all its ancestors are visible. | 128 // Returns true if this window and all its ancestors are visible. |
| 129 bool IsVisible() const; | 129 bool IsVisible() const; |
| 130 // Returns the visibility requested by this window. IsVisible() takes into | 130 // Returns the visibility requested by this window. IsVisible() takes into |
| 131 // account the visibility of the layer and ancestors, where as this tracks | 131 // account the visibility of the layer and ancestors, where as this tracks |
| 132 // whether Show() without a Hide() has been invoked. | 132 // whether Show() without a Hide() has been invoked. |
| 133 bool TargetVisibility() const { return visible_; } | 133 bool TargetVisibility() const { return visible_; } |
| 134 | 134 |
| 135 // Returns the window's bounds in screen coordinates. In ash, this is | 135 // Returns the window's bounds in screen coordinates. In ash, this is |
| 136 // effectively screen bounds. | 136 // effectively screen bounds. |
| 137 // | 137 // |
| 138 // TODO(oshima): Fix this to return screen's coordinate for multi-monitor | 138 // TODO(oshima): Fix this to return screen's coordinate for multi-display |
| 139 // support. | 139 // support. |
| 140 gfx::Rect GetBoundsInRootWindow() const; | 140 gfx::Rect GetBoundsInRootWindow() const; |
| 141 | 141 |
| 142 virtual void SetTransform(const ui::Transform& transform); | 142 virtual void SetTransform(const ui::Transform& transform); |
| 143 | 143 |
| 144 // Assigns a LayoutManager to size and place child windows. | 144 // Assigns a LayoutManager to size and place child windows. |
| 145 // The Window takes ownership of the LayoutManager. | 145 // The Window takes ownership of the LayoutManager. |
| 146 void SetLayoutManager(LayoutManager* layout_manager); | 146 void SetLayoutManager(LayoutManager* layout_manager); |
| 147 LayoutManager* layout_manager() { return layout_manager_.get(); } | 147 LayoutManager* layout_manager() { return layout_manager_.get(); } |
| 148 | 148 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 // SetVisbile(false). | 480 // SetVisbile(false). |
| 481 // TODO(xiyuan): Remove this when http://crbug.com/134507 is resolved. | 481 // TODO(xiyuan): Remove this when http://crbug.com/134507 is resolved. |
| 482 bool in_set_visible_call_; | 482 bool in_set_visible_call_; |
| 483 | 483 |
| 484 DISALLOW_COPY_AND_ASSIGN(Window); | 484 DISALLOW_COPY_AND_ASSIGN(Window); |
| 485 }; | 485 }; |
| 486 | 486 |
| 487 } // namespace aura | 487 } // namespace aura |
| 488 | 488 |
| 489 #endif // UI_AURA_WINDOW_H_ | 489 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |