| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 T GetLocalProperty(const WindowProperty<T>* property) const; | 151 T GetLocalProperty(const WindowProperty<T>* property) const; |
| 152 | 152 |
| 153 // Sets the |property| to its default value. Useful for avoiding a cast when | 153 // Sets the |property| to its default value. Useful for avoiding a cast when |
| 154 // setting to NULL. | 154 // setting to NULL. |
| 155 // | 155 // |
| 156 // These properties are only visible in the current process and are not | 156 // These properties are only visible in the current process and are not |
| 157 // shared with other mojo services. | 157 // shared with other mojo services. |
| 158 template <typename T> | 158 template <typename T> |
| 159 void ClearLocalProperty(const WindowProperty<T>* property); | 159 void ClearLocalProperty(const WindowProperty<T>* property); |
| 160 | 160 |
| 161 InputEventHandler* input_event_handler() { |
| 162 return input_event_handler_; |
| 163 } |
| 161 void set_input_event_handler(InputEventHandler* input_event_handler) { | 164 void set_input_event_handler(InputEventHandler* input_event_handler) { |
| 162 input_event_handler_ = input_event_handler; | 165 input_event_handler_ = input_event_handler; |
| 163 } | 166 } |
| 164 | 167 |
| 165 // Observation. | 168 // Observation. |
| 166 void AddObserver(WindowObserver* observer); | 169 void AddObserver(WindowObserver* observer); |
| 167 void RemoveObserver(WindowObserver* observer); | 170 void RemoveObserver(WindowObserver* observer); |
| 168 | 171 |
| 169 // Tree. | 172 // Tree. |
| 170 Window* parent() { return parent_; } | 173 Window* parent() { return parent_; } |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 }; | 357 }; |
| 355 | 358 |
| 356 std::map<const void*, Value> prop_map_; | 359 std::map<const void*, Value> prop_map_; |
| 357 | 360 |
| 358 DISALLOW_COPY_AND_ASSIGN(Window); | 361 DISALLOW_COPY_AND_ASSIGN(Window); |
| 359 }; | 362 }; |
| 360 | 363 |
| 361 } // namespace mus | 364 } // namespace mus |
| 362 | 365 |
| 363 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ | 366 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
| OLD | NEW |