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_VIEW_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_VIEW_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_VIEW_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 void MoveToFront(); | 124 void MoveToFront(); |
125 void MoveToBack(); | 125 void MoveToBack(); |
126 | 126 |
127 bool Contains(View* child) const; | 127 bool Contains(View* child) const; |
128 | 128 |
129 View* GetChildById(Id id); | 129 View* GetChildById(Id id); |
130 | 130 |
131 void SetTextInputState(mojo::TextInputStatePtr state); | 131 void SetTextInputState(mojo::TextInputStatePtr state); |
132 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); | 132 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); |
133 | 133 |
134 // Capture | |
135 void SetCapture(); | |
sadrul
2015/09/18 01:30:49
This should come with a corresponding ReleaseCaptu
Fady Samuel
2015/09/18 02:44:43
Done.
| |
136 | |
134 // Focus. | 137 // Focus. |
135 void SetFocus(); | 138 void SetFocus(); |
136 bool HasFocus() const; | 139 bool HasFocus() const; |
137 | 140 |
138 // Embedding. See view_tree.mojom for details. | 141 // Embedding. See view_tree.mojom for details. |
139 void Embed(mojo::ViewTreeClientPtr client); | 142 void Embed(mojo::ViewTreeClientPtr client); |
140 | 143 |
141 // NOTE: callback is run synchronously if Embed() is not allowed on this | 144 // NOTE: callback is run synchronously if Embed() is not allowed on this |
142 // View. | 145 // View. |
143 void Embed(mojo::ViewTreeClientPtr client, | 146 void Embed(mojo::ViewTreeClientPtr client, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 }; | 223 }; |
221 | 224 |
222 std::map<const void*, Value> prop_map_; | 225 std::map<const void*, Value> prop_map_; |
223 | 226 |
224 MOJO_DISALLOW_COPY_AND_ASSIGN(View); | 227 MOJO_DISALLOW_COPY_AND_ASSIGN(View); |
225 }; | 228 }; |
226 | 229 |
227 } // namespace mus | 230 } // namespace mus |
228 | 231 |
229 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_H_ | 232 #endif // COMPONENTS_MUS_PUBLIC_CPP_VIEW_H_ |
OLD | NEW |