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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 T GetLocalProperty(const WindowProperty<T>* property) const; | 148 T GetLocalProperty(const WindowProperty<T>* property) const; |
149 | 149 |
150 // Sets the |property| to its default value. Useful for avoiding a cast when | 150 // Sets the |property| to its default value. Useful for avoiding a cast when |
151 // setting to NULL. | 151 // setting to NULL. |
152 // | 152 // |
153 // These properties are only visible in the current process and are not | 153 // These properties are only visible in the current process and are not |
154 // shared with other mojo services. | 154 // shared with other mojo services. |
155 template <typename T> | 155 template <typename T> |
156 void ClearLocalProperty(const WindowProperty<T>* property); | 156 void ClearLocalProperty(const WindowProperty<T>* property); |
157 | 157 |
| 158 InputEventHandler* input_event_handler() { |
| 159 return input_event_handler_; |
| 160 } |
158 void set_input_event_handler(InputEventHandler* input_event_handler) { | 161 void set_input_event_handler(InputEventHandler* input_event_handler) { |
159 input_event_handler_ = input_event_handler; | 162 input_event_handler_ = input_event_handler; |
160 } | 163 } |
161 | 164 |
162 // Observation. | 165 // Observation. |
163 void AddObserver(WindowObserver* observer); | 166 void AddObserver(WindowObserver* observer); |
164 void RemoveObserver(WindowObserver* observer); | 167 void RemoveObserver(WindowObserver* observer); |
165 | 168 |
166 // Tree. | 169 // Tree. |
167 Window* parent() { return parent_; } | 170 Window* parent() { return parent_; } |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 }; | 352 }; |
350 | 353 |
351 std::map<const void*, Value> prop_map_; | 354 std::map<const void*, Value> prop_map_; |
352 | 355 |
353 DISALLOW_COPY_AND_ASSIGN(Window); | 356 DISALLOW_COPY_AND_ASSIGN(Window); |
354 }; | 357 }; |
355 | 358 |
356 } // namespace mus | 359 } // namespace mus |
357 | 360 |
358 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ | 361 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
OLD | NEW |