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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 void SetPredefinedCursor(mus::mojom::Cursor cursor_id); | 136 void SetPredefinedCursor(mus::mojom::Cursor cursor_id); |
137 | 137 |
138 const gfx::Transform& transform() const { return transform_; } | 138 const gfx::Transform& transform() const { return transform_; } |
139 void SetTransform(const gfx::Transform& transform); | 139 void SetTransform(const gfx::Transform& transform); |
140 | 140 |
141 const std::map<std::string, std::vector<uint8_t>>& properties() const { | 141 const std::map<std::string, std::vector<uint8_t>>& properties() const { |
142 return properties_; | 142 return properties_; |
143 } | 143 } |
144 void SetProperty(const std::string& name, const std::vector<uint8_t>* value); | 144 void SetProperty(const std::string& name, const std::vector<uint8_t>* value); |
145 | 145 |
146 std::string GetName() const; | |
msw
2016/05/05 22:12:08
nit: const std::string&?
James Cook
2016/05/05 22:53:18
I can't, the string is a stack variable inside the
msw
2016/05/05 23:10:06
Acknowledged.
| |
147 | |
146 void SetTextInputState(const ui::TextInputState& state); | 148 void SetTextInputState(const ui::TextInputState& state); |
147 const ui::TextInputState& text_input_state() const { | 149 const ui::TextInputState& text_input_state() const { |
148 return text_input_state_; | 150 return text_input_state_; |
149 } | 151 } |
150 | 152 |
151 void set_can_focus(bool can_focus) { can_focus_ = can_focus; } | 153 void set_can_focus(bool can_focus) { can_focus_ = can_focus; } |
152 bool can_focus() const { return can_focus_; } | 154 bool can_focus() const { return can_focus_; } |
153 | 155 |
154 // Returns true if this window is attached to a root and all ancestors are | 156 // Returns true if this window is attached to a root and all ancestors are |
155 // visible. | 157 // visible. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 | 235 |
234 base::ObserverList<ServerWindowObserver> observers_; | 236 base::ObserverList<ServerWindowObserver> observers_; |
235 | 237 |
236 DISALLOW_COPY_AND_ASSIGN(ServerWindow); | 238 DISALLOW_COPY_AND_ASSIGN(ServerWindow); |
237 }; | 239 }; |
238 | 240 |
239 } // namespace ws | 241 } // namespace ws |
240 } // namespace mus | 242 } // namespace mus |
241 | 243 |
242 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_H_ | 244 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_H_ |
OLD | NEW |