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_WS_SERVER_WINDOW_H_ | 5 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_H_ |
6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_H_ | 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 void SetPredefinedCursor(mus::mojom::Cursor cursor_id); | 126 void SetPredefinedCursor(mus::mojom::Cursor cursor_id); |
127 | 127 |
128 const gfx::Transform& transform() const { return transform_; } | 128 const gfx::Transform& transform() const { return transform_; } |
129 void SetTransform(const gfx::Transform& transform); | 129 void SetTransform(const gfx::Transform& transform); |
130 | 130 |
131 const std::map<std::string, std::vector<uint8_t>>& properties() const { | 131 const std::map<std::string, std::vector<uint8_t>>& properties() const { |
132 return properties_; | 132 return properties_; |
133 } | 133 } |
134 void SetProperty(const std::string& name, const std::vector<uint8_t>* value); | 134 void SetProperty(const std::string& name, const std::vector<uint8_t>* value); |
135 | 135 |
| 136 std::string GetName() const; |
| 137 |
136 void SetTextInputState(const ui::TextInputState& state); | 138 void SetTextInputState(const ui::TextInputState& state); |
137 const ui::TextInputState& text_input_state() const { | 139 const ui::TextInputState& text_input_state() const { |
138 return text_input_state_; | 140 return text_input_state_; |
139 } | 141 } |
140 | 142 |
141 void set_can_focus(bool can_focus) { can_focus_ = can_focus; } | 143 void set_can_focus(bool can_focus) { can_focus_ = can_focus; } |
142 bool can_focus() const { return can_focus_; } | 144 bool can_focus() const { return can_focus_; } |
143 | 145 |
144 // Returns true if this window is attached to a root and all ancestors are | 146 // Returns true if this window is attached to a root and all ancestors are |
145 // visible. | 147 // visible. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 225 |
224 base::ObserverList<ServerWindowObserver> observers_; | 226 base::ObserverList<ServerWindowObserver> observers_; |
225 | 227 |
226 DISALLOW_COPY_AND_ASSIGN(ServerWindow); | 228 DISALLOW_COPY_AND_ASSIGN(ServerWindow); |
227 }; | 229 }; |
228 | 230 |
229 } // namespace ws | 231 } // namespace ws |
230 } // namespace mus | 232 } // namespace mus |
231 | 233 |
232 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_H_ | 234 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_H_ |
OLD | NEW |