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

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

Issue 2068093002: mus: Allow embedder to intercept events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 4 years, 5 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_manager_state_unittest.cc ('k') | components/mus/ws/window_server.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_SERVER_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_SERVER_H_
6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const std::map<std::string, std::vector<uint8_t>>& properties); 66 const std::map<std::string, std::vector<uint8_t>>& properties);
67 67
68 // Returns the id for the next WindowTree. 68 // Returns the id for the next WindowTree.
69 ClientSpecificId GetAndAdvanceNextClientId(); 69 ClientSpecificId GetAndAdvanceNextClientId();
70 70
71 // See description of WindowTree::Embed() for details. This assumes 71 // See description of WindowTree::Embed() for details. This assumes
72 // |transport_window_id| is valid. 72 // |transport_window_id| is valid.
73 WindowTree* EmbedAtWindow(ServerWindow* root, 73 WindowTree* EmbedAtWindow(ServerWindow* root,
74 const UserId& user_id, 74 const UserId& user_id,
75 mojom::WindowTreeClientPtr client, 75 mojom::WindowTreeClientPtr client,
76 uint32_t flags,
76 std::unique_ptr<AccessPolicy> access_policy); 77 std::unique_ptr<AccessPolicy> access_policy);
77 78
78 // Adds |tree_impl_ptr| to the set of known trees. Use DestroyTree() to 79 // Adds |tree_impl_ptr| to the set of known trees. Use DestroyTree() to
79 // destroy the tree. 80 // destroy the tree.
80 void AddTree(std::unique_ptr<WindowTree> tree_impl_ptr, 81 void AddTree(std::unique_ptr<WindowTree> tree_impl_ptr,
81 std::unique_ptr<WindowTreeBinding> binding, 82 std::unique_ptr<WindowTreeBinding> binding,
82 mojom::WindowTreePtr tree_ptr); 83 mojom::WindowTreePtr tree_ptr);
83 WindowTree* CreateTreeForWindowManager( 84 WindowTree* CreateTreeForWindowManager(
84 const UserId& user_id, 85 const UserId& user_id,
85 mojom::WindowTreeRequest window_tree_request, 86 mojom::WindowTreeRequest window_tree_request,
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 318
318 WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_; 319 WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_;
319 320
320 DISALLOW_COPY_AND_ASSIGN(WindowServer); 321 DISALLOW_COPY_AND_ASSIGN(WindowServer);
321 }; 322 };
322 323
323 } // namespace ws 324 } // namespace ws
324 } // namespace mus 325 } // namespace mus
325 326
326 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_ 327 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_manager_state_unittest.cc ('k') | components/mus/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698