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 SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
218 const EmbedCallback& callback, | 218 const EmbedCallback& callback, |
219 uint32_t flags = 0); | 219 uint32_t flags = 0); |
220 | 220 |
221 // TODO(sky): this API is only applicable to the WindowManager. Move it | 221 // TODO(sky): this API is only applicable to the WindowManager. Move it |
222 // to a better place. | 222 // to a better place. |
223 void RequestClose(); | 223 void RequestClose(); |
224 | 224 |
225 // Returns an internal name, set by a client app when it creates a window. | 225 // Returns an internal name, set by a client app when it creates a window. |
226 std::string GetName() const; | 226 std::string GetName() const; |
227 | 227 |
228 void SetAcceptEvents(bool accept_events); | |
sky
2016/07/06 16:21:25
nit: this is a bad location as GetName is more deb
riajiang
2016/07/08 17:59:59
Done.
| |
229 | |
228 protected: | 230 protected: |
229 // This class is subclassed only by test classes that provide a public ctor. | 231 // This class is subclassed only by test classes that provide a public ctor. |
230 Window(); | 232 Window(); |
231 ~Window(); | 233 ~Window(); |
232 | 234 |
233 private: | 235 private: |
234 friend class WindowPrivate; | 236 friend class WindowPrivate; |
235 friend class WindowTreeClient; | 237 friend class WindowTreeClient; |
236 friend class WindowTreeClientPrivate; | 238 friend class WindowTreeClientPrivate; |
237 | 239 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
347 }; | 349 }; |
348 | 350 |
349 std::map<const void*, Value> prop_map_; | 351 std::map<const void*, Value> prop_map_; |
350 | 352 |
351 DISALLOW_COPY_AND_ASSIGN(Window); | 353 DISALLOW_COPY_AND_ASSIGN(Window); |
352 }; | 354 }; |
353 | 355 |
354 } // namespace ui | 356 } // namespace ui |
355 | 357 |
356 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 358 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
OLD | NEW |