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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
202 | 202 |
203 bool HasCapture() const; | 203 bool HasCapture() const; |
204 void SetCapture(); | 204 void SetCapture(); |
205 void ReleaseCapture(); | 205 void ReleaseCapture(); |
206 | 206 |
207 // Focus. See WindowTreeClient::ClearFocus() to reset focus. | 207 // Focus. See WindowTreeClient::ClearFocus() to reset focus. |
208 void SetFocus(); | 208 void SetFocus(); |
209 bool HasFocus() const; | 209 bool HasFocus() const; |
210 void SetCanFocus(bool can_focus); | 210 void SetCanFocus(bool can_focus); |
211 | 211 |
212 // Set whether this window accepts events. | |
213 void SetAcceptEvents(bool accept_events); | |
sky
2016/07/08 20:35:00
nit: SetCanAcceptEvents.
riajiang
2016/07/11 15:48:38
Done.
| |
214 | |
212 // Embedding. See window_tree.mojom for details. | 215 // Embedding. See window_tree.mojom for details. |
213 void Embed(ui::mojom::WindowTreeClientPtr client, uint32_t flags = 0); | 216 void Embed(ui::mojom::WindowTreeClientPtr client, uint32_t flags = 0); |
214 | 217 |
215 // NOTE: callback is run synchronously if Embed() is not allowed on this | 218 // NOTE: callback is run synchronously if Embed() is not allowed on this |
216 // Window. | 219 // Window. |
217 void Embed(ui::mojom::WindowTreeClientPtr client, | 220 void Embed(ui::mojom::WindowTreeClientPtr client, |
218 const EmbedCallback& callback, | 221 const EmbedCallback& callback, |
219 uint32_t flags = 0); | 222 uint32_t flags = 0); |
220 | 223 |
221 // TODO(sky): this API is only applicable to the WindowManager. Move it | 224 // TODO(sky): this API is only applicable to the WindowManager. Move it |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
357 }; | 360 }; |
358 | 361 |
359 std::map<const void*, Value> prop_map_; | 362 std::map<const void*, Value> prop_map_; |
360 | 363 |
361 DISALLOW_COPY_AND_ASSIGN(Window); | 364 DISALLOW_COPY_AND_ASSIGN(Window); |
362 }; | 365 }; |
363 | 366 |
364 } // namespace ui | 367 } // namespace ui |
365 | 368 |
366 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 369 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
OLD | NEW |