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 14 matching lines...) Expand all Loading... |
25 #include "ui/events/event_target.h" | 25 #include "ui/events/event_target.h" |
26 #include "ui/events/event_targeter.h" | 26 #include "ui/events/event_targeter.h" |
27 #include "ui/events/gestures/gesture_types.h" | 27 #include "ui/events/gestures/gesture_types.h" |
28 #include "ui/gfx/geometry/insets.h" | 28 #include "ui/gfx/geometry/insets.h" |
29 #include "ui/gfx/geometry/rect.h" | 29 #include "ui/gfx/geometry/rect.h" |
30 #include "ui/gfx/native_widget_types.h" | 30 #include "ui/gfx/native_widget_types.h" |
31 #include "ui/wm/public/window_types.h" | 31 #include "ui/wm/public/window_types.h" |
32 | 32 |
33 namespace gfx { | 33 namespace gfx { |
34 class Display; | 34 class Display; |
| 35 } |
| 36 |
| 37 namespace display { |
| 38 using Display = gfx::Display; |
| 39 } |
| 40 |
| 41 namespace gfx { |
35 class Transform; | 42 class Transform; |
36 class Vector2d; | 43 class Vector2d; |
37 } | 44 } |
38 | 45 |
39 namespace ui { | 46 namespace ui { |
40 class EventHandler; | 47 class EventHandler; |
41 class Layer; | 48 class Layer; |
42 class TextInputClient; | 49 class TextInputClient; |
43 class Texture; | 50 class Texture; |
44 } | 51 } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 std::unique_ptr<ui::EventTargeter> SetEventTargeter( | 172 std::unique_ptr<ui::EventTargeter> SetEventTargeter( |
166 std::unique_ptr<ui::EventTargeter> targeter); | 173 std::unique_ptr<ui::EventTargeter> targeter); |
167 | 174 |
168 // Changes the bounds of the window. If present, the window's parent's | 175 // Changes the bounds of the window. If present, the window's parent's |
169 // LayoutManager may adjust the bounds. | 176 // LayoutManager may adjust the bounds. |
170 void SetBounds(const gfx::Rect& new_bounds); | 177 void SetBounds(const gfx::Rect& new_bounds); |
171 | 178 |
172 // Changes the bounds of the window in the screen coordintates. | 179 // Changes the bounds of the window in the screen coordintates. |
173 // If present, the window's parent's LayoutManager may adjust the bounds. | 180 // If present, the window's parent's LayoutManager may adjust the bounds. |
174 void SetBoundsInScreen(const gfx::Rect& new_bounds_in_screen_coords, | 181 void SetBoundsInScreen(const gfx::Rect& new_bounds_in_screen_coords, |
175 const gfx::Display& dst_display); | 182 const display::Display& dst_display); |
176 | 183 |
177 // Returns the target bounds of the window. If the window's layer is | 184 // Returns the target bounds of the window. If the window's layer is |
178 // not animating, it simply returns the current bounds. | 185 // not animating, it simply returns the current bounds. |
179 gfx::Rect GetTargetBounds() const; | 186 gfx::Rect GetTargetBounds() const; |
180 | 187 |
181 // Marks the a portion of window as needing to be painted. | 188 // Marks the a portion of window as needing to be painted. |
182 void SchedulePaintInRect(const gfx::Rect& rect); | 189 void SchedulePaintInRect(const gfx::Rect& rect); |
183 | 190 |
184 // Stacks the specified child of this Window at the front of the z-order. | 191 // Stacks the specified child of this Window at the front of the z-order. |
185 void StackChildAtTop(Window* child); | 192 void StackChildAtTop(Window* child); |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 }; | 524 }; |
518 | 525 |
519 std::map<const void*, Value> prop_map_; | 526 std::map<const void*, Value> prop_map_; |
520 | 527 |
521 DISALLOW_COPY_AND_ASSIGN(Window); | 528 DISALLOW_COPY_AND_ASSIGN(Window); |
522 }; | 529 }; |
523 | 530 |
524 } // namespace aura | 531 } // namespace aura |
525 | 532 |
526 #endif // UI_AURA_WINDOW_H_ | 533 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |