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 13 matching lines...) Expand all Loading... |
24 #include "ui/compositor/layer_delegate.h" | 24 #include "ui/compositor/layer_delegate.h" |
25 #include "ui/compositor/layer_owner.h" | 25 #include "ui/compositor/layer_owner.h" |
26 #include "ui/events/event_constants.h" | 26 #include "ui/events/event_constants.h" |
27 #include "ui/events/event_target.h" | 27 #include "ui/events/event_target.h" |
28 #include "ui/events/event_targeter.h" | 28 #include "ui/events/event_targeter.h" |
29 #include "ui/events/gestures/gesture_types.h" | 29 #include "ui/events/gestures/gesture_types.h" |
30 #include "ui/gfx/geometry/rect.h" | 30 #include "ui/gfx/geometry/rect.h" |
31 #include "ui/gfx/native_widget_types.h" | 31 #include "ui/gfx/native_widget_types.h" |
32 #include "ui/wm/public/window_types.h" | 32 #include "ui/wm/public/window_types.h" |
33 | 33 |
| 34 namespace cc { |
| 35 class CompositorFrameSink; |
| 36 } |
| 37 |
34 namespace display { | 38 namespace display { |
35 class Display; | 39 class Display; |
36 } | 40 } |
37 | 41 |
38 namespace gfx { | 42 namespace gfx { |
39 class Transform; | 43 class Transform; |
40 } | 44 } |
41 | 45 |
42 namespace ui { | 46 namespace ui { |
43 class Layer; | 47 class Layer; |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 301 |
298 #if !defined(NDEBUG) | 302 #if !defined(NDEBUG) |
299 // These methods are useful when debugging. | 303 // These methods are useful when debugging. |
300 std::string GetDebugInfo() const; | 304 std::string GetDebugInfo() const; |
301 void PrintWindowHierarchy(int depth) const; | 305 void PrintWindowHierarchy(int depth) const; |
302 #endif | 306 #endif |
303 | 307 |
304 // Returns true if there was state needing to be cleaned up. | 308 // Returns true if there was state needing to be cleaned up. |
305 bool CleanupGestureState(); | 309 bool CleanupGestureState(); |
306 | 310 |
| 311 // Create a CompositorFrameSink for the aura::Window. It will replace the old |
| 312 // one created by this function. |
| 313 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink(); |
| 314 |
307 protected: | 315 protected: |
308 // Deletes (or removes if not owned by parent) all child windows. Intended for | 316 // Deletes (or removes if not owned by parent) all child windows. Intended for |
309 // use from the destructor. | 317 // use from the destructor. |
310 void RemoveOrDestroyChildren(); | 318 void RemoveOrDestroyChildren(); |
311 | 319 |
312 // Overrides from ui::PropertyHandler | 320 // Overrides from ui::PropertyHandler |
313 std::unique_ptr<ui::PropertyData> BeforePropertyChange(const void* key) | 321 std::unique_ptr<ui::PropertyData> BeforePropertyChange(const void* key) |
314 override; | 322 override; |
315 void AfterPropertyChange(const void* key, | 323 void AfterPropertyChange(const void* key, |
316 int64_t old_value, | 324 int64_t old_value, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 bool ignore_events_; | 480 bool ignore_events_; |
473 | 481 |
474 base::ObserverList<WindowObserver, true> observers_; | 482 base::ObserverList<WindowObserver, true> observers_; |
475 | 483 |
476 DISALLOW_COPY_AND_ASSIGN(Window); | 484 DISALLOW_COPY_AND_ASSIGN(Window); |
477 }; | 485 }; |
478 | 486 |
479 } // namespace aura | 487 } // namespace aura |
480 | 488 |
481 #endif // UI_AURA_WINDOW_H_ | 489 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |