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

Side by Side Diff: components/mus/public/cpp/window_tree_client.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/public/cpp/window.h ('k') | components/mus/public/interfaces/window_tree.mojom » ('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_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void SetProperty(Window* window, 118 void SetProperty(Window* window,
119 const std::string& name, 119 const std::string& name,
120 mojo::Array<uint8_t> data); 120 mojo::Array<uint8_t> data);
121 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); 121 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state);
122 void SetImeVisibility(Id window_id, 122 void SetImeVisibility(Id window_id,
123 bool visible, 123 bool visible,
124 mojo::TextInputStatePtr state); 124 mojo::TextInputStatePtr state);
125 125
126 void Embed(Id window_id, 126 void Embed(Id window_id,
127 mojom::WindowTreeClientPtr client, 127 mojom::WindowTreeClientPtr client,
128 uint32_t flags,
128 const mojom::WindowTree::EmbedCallback& callback); 129 const mojom::WindowTree::EmbedCallback& callback);
129 130
130 void RequestClose(Window* window); 131 void RequestClose(Window* window);
131 132
132 void AttachSurface(Id window_id, 133 void AttachSurface(Id window_id,
133 mojom::SurfaceType type, 134 mojom::SurfaceType type,
134 mojo::InterfaceRequest<mojom::Surface> surface, 135 mojo::InterfaceRequest<mojom::Surface> surface,
135 mojom::SurfaceClientPtr client); 136 mojom::SurfaceClientPtr client);
136 137
137 // Sets the input capture to |window| without notifying the server. 138 // Sets the input capture to |window| without notifying the server.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 uint32_t event_observer_id_ = 0u; 398 uint32_t event_observer_id_ = 0u;
398 399
399 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 400 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
400 401
401 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 402 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
402 }; 403 };
403 404
404 } // namespace mus 405 } // namespace mus
405 406
406 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 407 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/window.h ('k') | components/mus/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698