| 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_WINDOW_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 Window* GetChildById(Id id); | 190 Window* GetChildById(Id id); |
| 191 | 191 |
| 192 void SetTextInputState(mojo::TextInputStatePtr state); | 192 void SetTextInputState(mojo::TextInputStatePtr state); |
| 193 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); | 193 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); |
| 194 | 194 |
| 195 bool HasCapture() const; | 195 bool HasCapture() const; |
| 196 void SetCapture(); | 196 void SetCapture(); |
| 197 void ReleaseCapture(); | 197 void ReleaseCapture(); |
| 198 | 198 |
| 199 // Focus. | 199 // Focus. See WindowTreeConnection::ClearFocus() to reset focus. |
| 200 void SetFocus(); | 200 void SetFocus(); |
| 201 bool HasFocus() const; | 201 bool HasFocus() const; |
| 202 void SetCanFocus(bool can_focus); | 202 void SetCanFocus(bool can_focus); |
| 203 | 203 |
| 204 // Embedding. See window_tree.mojom for details. | 204 // Embedding. See window_tree.mojom for details. |
| 205 void Embed(mus::mojom::WindowTreeClientPtr client); | 205 void Embed(mus::mojom::WindowTreeClientPtr client); |
| 206 | 206 |
| 207 // NOTE: callback is run synchronously if Embed() is not allowed on this | 207 // NOTE: callback is run synchronously if Embed() is not allowed on this |
| 208 // Window. | 208 // Window. |
| 209 void Embed(mus::mojom::WindowTreeClientPtr client, | 209 void Embed(mus::mojom::WindowTreeClientPtr client, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 std::map<const void*, Value> prop_map_; | 333 std::map<const void*, Value> prop_map_; |
| 334 | 334 |
| 335 DISALLOW_COPY_AND_ASSIGN(Window); | 335 DISALLOW_COPY_AND_ASSIGN(Window); |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 } // namespace mus | 338 } // namespace mus |
| 339 | 339 |
| 340 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ | 340 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
| OLD | NEW |