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

Side by Side Diff: components/mus/ws/window_tree.h

Issue 1868783003: Makes SetFocus() notify callback correctly on failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « components/mus/ws/window_server.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WS_WINDOW_TREE_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); 140 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible);
141 bool SetFocus(const ClientWindowId& window_id); 141 bool SetFocus(const ClientWindowId& window_id);
142 bool Embed(const ClientWindowId& window_id, 142 bool Embed(const ClientWindowId& window_id,
143 mojom::WindowTreeClientPtr client); 143 mojom::WindowTreeClientPtr client);
144 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); 144 void DispatchInputEvent(ServerWindow* target, const ui::Event& event);
145 145
146 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); 146 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id);
147 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, 147 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id,
148 uint32_t client_change_id, 148 uint32_t client_change_id,
149 const ServerWindow* window); 149 const ServerWindow* window);
150 void AddActivationParent(const ClientWindowId& window_id);
150 151
151 // Calls through to the client. 152 // Calls through to the client.
152 void OnChangeCompleted(uint32_t change_id, bool success); 153 void OnChangeCompleted(uint32_t change_id, bool success);
153 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event); 154 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event);
154 155
155 // The following methods are invoked after the corresponding change has been 156 // The following methods are invoked after the corresponding change has been
156 // processed. They do the appropriate bookkeeping and update the client as 157 // processed. They do the appropriate bookkeeping and update the client as
157 // necessary. 158 // necessary.
158 void ProcessWindowBoundsChanged(const ServerWindow* window, 159 void ProcessWindowBoundsChanged(const ServerWindow* window,
159 const gfx::Rect& old_bounds, 160 const gfx::Rect& old_bounds,
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 431
431 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; 432 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_;
432 433
433 DISALLOW_COPY_AND_ASSIGN(WindowTree); 434 DISALLOW_COPY_AND_ASSIGN(WindowTree);
434 }; 435 };
435 436
436 } // namespace ws 437 } // namespace ws
437 } // namespace mus 438 } // namespace mus
438 439
439 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ 440 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_server.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698