| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 } | 66 } |
| 67 | 67 |
| 68 // Aura window implementation. Interesting events are sent to the | 68 // Aura window implementation. Interesting events are sent to the |
| 69 // WindowDelegate. | 69 // WindowDelegate. |
| 70 // TODO(beng): resolve ownership. | 70 // TODO(beng): resolve ownership. |
| 71 class AURA_EXPORT Window : public ui::LayerDelegate, | 71 class AURA_EXPORT Window : public ui::LayerDelegate, |
| 72 public ui::LayerOwner, | 72 public ui::LayerOwner, |
| 73 public ui::EventTarget, | 73 public ui::EventTarget, |
| 74 public ui::GestureConsumer { | 74 public ui::GestureConsumer { |
| 75 public: | 75 public: |
| 76 // Initial value of id() for newly created windows. |
| 77 static constexpr int kInitialId = -1; |
| 78 |
| 76 // Used when stacking windows. | 79 // Used when stacking windows. |
| 77 enum StackDirection { | 80 enum StackDirection { |
| 78 STACK_ABOVE, | 81 STACK_ABOVE, |
| 79 STACK_BELOW | 82 STACK_BELOW |
| 80 }; | 83 }; |
| 81 | 84 |
| 82 typedef std::vector<Window*> Windows; | 85 typedef std::vector<Window*> Windows; |
| 83 | 86 |
| 84 explicit Window(WindowDelegate* delegate); | 87 explicit Window(WindowDelegate* delegate); |
| 85 ~Window() override; | 88 ~Window() override; |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 }; | 523 }; |
| 521 | 524 |
| 522 std::map<const void*, Value> prop_map_; | 525 std::map<const void*, Value> prop_map_; |
| 523 | 526 |
| 524 DISALLOW_COPY_AND_ASSIGN(Window); | 527 DISALLOW_COPY_AND_ASSIGN(Window); |
| 525 }; | 528 }; |
| 526 | 529 |
| 527 } // namespace aura | 530 } // namespace aura |
| 528 | 531 |
| 529 #endif // UI_AURA_WINDOW_H_ | 532 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |