Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Side by Side Diff: components/mus/public/cpp/window.h

Issue 1862853002: Makes WindowTree::SetFocus(null) work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar cleanup Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.cc ('k') | components/mus/public/cpp/window_tree_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698