| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 void MoveToFront(); | 161 void MoveToFront(); |
| 162 void MoveToBack(); | 162 void MoveToBack(); |
| 163 | 163 |
| 164 bool Contains(Window* child) const; | 164 bool Contains(Window* child) const; |
| 165 | 165 |
| 166 Window* GetChildById(Id id); | 166 Window* GetChildById(Id id); |
| 167 | 167 |
| 168 void SetTextInputState(mojo::TextInputStatePtr state); | 168 void SetTextInputState(mojo::TextInputStatePtr state); |
| 169 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); | 169 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); |
| 170 | 170 |
| 171 // The following make their way to the WindowManager. See | |
| 172 // window_manager.mojom for details. | |
| 173 void SetPreferredSize(const gfx::Size& size); | |
| 174 void SetResizeBehavior(mojom::ResizeBehavior resize_behavior); | |
| 175 | |
| 176 // Focus. | 171 // Focus. |
| 177 void SetFocus(); | 172 void SetFocus(); |
| 178 bool HasFocus() const; | 173 bool HasFocus() const; |
| 179 void SetCanFocus(bool can_focus); | 174 void SetCanFocus(bool can_focus); |
| 180 | 175 |
| 181 // Embedding. See window_tree.mojom for details. | 176 // Embedding. See window_tree.mojom for details. |
| 182 void Embed(mus::mojom::WindowTreeClientPtr client); | 177 void Embed(mus::mojom::WindowTreeClientPtr client); |
| 183 | 178 |
| 184 // NOTE: callback is run synchronously if Embed() is not allowed on this | 179 // NOTE: callback is run synchronously if Embed() is not allowed on this |
| 185 // Window. | 180 // Window. |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 }; | 290 }; |
| 296 | 291 |
| 297 std::map<const void*, Value> prop_map_; | 292 std::map<const void*, Value> prop_map_; |
| 298 | 293 |
| 299 MOJO_DISALLOW_COPY_AND_ASSIGN(Window); | 294 MOJO_DISALLOW_COPY_AND_ASSIGN(Window); |
| 300 }; | 295 }; |
| 301 | 296 |
| 302 } // namespace mus | 297 } // namespace mus |
| 303 | 298 |
| 304 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ | 299 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ |
| OLD | NEW |