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

Side by Side Diff: components/mus/public/cpp/lib/window_tree_client_impl.h

Issue 1921673005: mus: Add PointerWatcher for passively observing mouse and touch events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 ConnectionSpecificId connection_id, 160 ConnectionSpecificId connection_id,
161 mojom::WindowDataPtr root_data, 161 mojom::WindowDataPtr root_data,
162 Id focused_window_id, 162 Id focused_window_id,
163 bool drawn); 163 bool drawn);
164 164
165 // Overridden from WindowTreeConnection: 165 // Overridden from WindowTreeConnection:
166 void SetDeleteOnNoRoots(bool value) override; 166 void SetDeleteOnNoRoots(bool value) override;
167 const std::set<Window*>& GetRoots() override; 167 const std::set<Window*>& GetRoots() override;
168 Window* GetFocusedWindow() override; 168 Window* GetFocusedWindow() override;
169 void ClearFocus() override; 169 void ClearFocus() override;
170 void SetEventObserver(mojom::EventMatcherPtr matcher) override;
170 Window* NewWindow(const Window::SharedProperties* properties) override; 171 Window* NewWindow(const Window::SharedProperties* properties) override;
171 Window* NewTopLevelWindow( 172 Window* NewTopLevelWindow(
172 const Window::SharedProperties* properties) override; 173 const Window::SharedProperties* properties) override;
173 ConnectionSpecificId GetConnectionId() override; 174 ConnectionSpecificId GetConnectionId() override;
174 void AddObserver(WindowTreeConnectionObserver* observer) override; 175 void AddObserver(WindowTreeConnectionObserver* observer) override;
175 void RemoveObserver(WindowTreeConnectionObserver* observer) override; 176 void RemoveObserver(WindowTreeConnectionObserver* observer) override;
176 177
177 // Overridden from WindowTreeClient: 178 // Overridden from WindowTreeClient:
178 void OnEmbed(ConnectionSpecificId connection_id, 179 void OnEmbed(ConnectionSpecificId connection_id,
179 mojom::WindowDataPtr root, 180 mojom::WindowDataPtr root,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 bool delete_on_no_roots_; 293 bool delete_on_no_roots_;
293 294
294 bool in_destructor_; 295 bool in_destructor_;
295 296
296 base::ObserverList<WindowTreeConnectionObserver> observers_; 297 base::ObserverList<WindowTreeConnectionObserver> observers_;
297 298
298 std::unique_ptr<mojo::AssociatedBinding<mojom::WindowManager>> 299 std::unique_ptr<mojo::AssociatedBinding<mojom::WindowManager>>
299 window_manager_internal_; 300 window_manager_internal_;
300 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; 301 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_;
301 302
303 bool has_event_observer_ = false;
304
305 // Monotonically increasing ID for event observers.
306 uint32_t event_observer_id_ = 0u;
307
302 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); 308 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl);
303 }; 309 };
304 310
305 } // namespace mus 311 } // namespace mus
306 312
307 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 313 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/demo/mus_demo.cc ('k') | components/mus/public/cpp/lib/window_tree_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698