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_LIB_WINDOW_PRIVATE_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 18 matching lines...) Expand all Loading... |
29 return &window_->observers_; | 29 return &window_->observers_; |
30 } | 30 } |
31 | 31 |
32 void ClearParent() { window_->parent_ = nullptr; } | 32 void ClearParent() { window_->parent_ = nullptr; } |
33 | 33 |
34 void ClearTransientParent() { window_->transient_parent_ = nullptr; } | 34 void ClearTransientParent() { window_->transient_parent_ = nullptr; } |
35 | 35 |
36 void set_visible(bool visible) { window_->visible_ = visible; } | 36 void set_visible(bool visible) { window_->visible_ = visible; } |
37 | 37 |
38 void set_drawn(bool drawn) { window_->drawn_ = drawn; } | 38 void set_drawn(bool drawn) { window_->drawn_ = drawn; } |
| 39 bool drawn() { return window_->drawn_; } |
39 | 40 |
40 void set_id(Id id) { window_->id_ = id; } | 41 void set_id(Id id) { window_->id_ = id; } |
41 | 42 |
42 void set_connection(WindowTreeConnection* connection) { | 43 void set_connection(WindowTreeConnection* connection) { |
43 window_->connection_ = connection; | 44 window_->connection_ = connection; |
44 } | 45 } |
45 | 46 |
46 void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) { | 47 void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) { |
47 window_->properties_ = data; | 48 window_->properties_ = data; |
48 } | 49 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 89 |
89 private: | 90 private: |
90 Window* window_; | 91 Window* window_; |
91 | 92 |
92 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowPrivate); | 93 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowPrivate); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace mus | 96 } // namespace mus |
96 | 97 |
97 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ | 98 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ |
OLD | NEW |