| 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 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // Returns the window's bounds in root window's coordinates. | 146 // Returns the window's bounds in root window's coordinates. |
| 147 gfx::Rect GetBoundsInRootWindow() const; | 147 gfx::Rect GetBoundsInRootWindow() const; |
| 148 | 148 |
| 149 // Returns the window's bounds in screen coordinates. | 149 // Returns the window's bounds in screen coordinates. |
| 150 // How the root window's coordinates is mapped to screen's coordinates | 150 // How the root window's coordinates is mapped to screen's coordinates |
| 151 // is platform dependent and defined in the implementation of the | 151 // is platform dependent and defined in the implementation of the |
| 152 // |aura::client::ScreenPositionClient| interface. | 152 // |aura::client::ScreenPositionClient| interface. |
| 153 gfx::Rect GetBoundsInScreen() const; | 153 gfx::Rect GetBoundsInScreen() const; |
| 154 | 154 |
| 155 void SetTransform(const gfx::Transform& transform); | 155 void SetTransform(const gfx::Transform& transform); |
| 156 const gfx::Transform& transform() const { return layer()->transform(); } |
| 156 | 157 |
| 157 // Assigns a LayoutManager to size and place child windows. | 158 // Assigns a LayoutManager to size and place child windows. |
| 158 // The Window takes ownership of the LayoutManager. | 159 // The Window takes ownership of the LayoutManager. |
| 159 void SetLayoutManager(LayoutManager* layout_manager); | 160 void SetLayoutManager(LayoutManager* layout_manager); |
| 160 LayoutManager* layout_manager() { return layout_manager_.get(); } | 161 LayoutManager* layout_manager() { return layout_manager_.get(); } |
| 161 | 162 |
| 162 // Sets a new event-targeter for the window, and returns the previous | 163 // Sets a new event-targeter for the window, and returns the previous |
| 163 // event-targeter. | 164 // event-targeter. |
| 164 std::unique_ptr<ui::EventTargeter> SetEventTargeter( | 165 std::unique_ptr<ui::EventTargeter> SetEventTargeter( |
| 165 std::unique_ptr<ui::EventTargeter> targeter); | 166 std::unique_ptr<ui::EventTargeter> targeter); |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 gfx::Insets hit_test_bounds_override_inner_; | 487 gfx::Insets hit_test_bounds_override_inner_; |
| 487 | 488 |
| 488 base::ObserverList<WindowObserver, true> observers_; | 489 base::ObserverList<WindowObserver, true> observers_; |
| 489 | 490 |
| 490 DISALLOW_COPY_AND_ASSIGN(Window); | 491 DISALLOW_COPY_AND_ASSIGN(Window); |
| 491 }; | 492 }; |
| 492 | 493 |
| 493 } // namespace aura | 494 } // namespace aura |
| 494 | 495 |
| 495 #endif // UI_AURA_WINDOW_H_ | 496 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |