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

Side by Side Diff: services/ui/public/cpp/window_tree_client_delegate.h

Issue 2183163002: mus: Change PointerWatcher to observe all pointer events, with moves optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_DELEGATE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_DELEGATE_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_DELEGATE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "services/shell/public/interfaces/interface_provider.mojom.h" 10 #include "services/shell/public/interfaces/interface_provider.mojom.h"
(...skipping 22 matching lines...) Expand all
33 // and the connection is configured to delete when there are no roots (the 33 // and the connection is configured to delete when there are no roots (the
34 // default), then after |root| is destroyed the connection is destroyed as 34 // default), then after |root| is destroyed the connection is destroyed as
35 // well. 35 // well.
36 virtual void OnUnembed(Window* root); 36 virtual void OnUnembed(Window* root);
37 37
38 // Called from the destructor of WindowTreeClient after all the Windows have 38 // Called from the destructor of WindowTreeClient after all the Windows have
39 // been destroyed. |client| is no longer valid after this call. 39 // been destroyed. |client| is no longer valid after this call.
40 virtual void OnDidDestroyClient(WindowTreeClient* client) = 0; 40 virtual void OnDidDestroyClient(WindowTreeClient* client) = 0;
41 41
42 // Called when the WindowTreeClient receives an input event observed via 42 // Called when the WindowTreeClient receives an input event observed via
43 // SetEventObserver(). |target| may be null for events that were sent to 43 // StartPointerWatcher(). |target| may be null for events that were sent to
44 // windows owned by other processes. 44 // windows owned by other processes.
45 virtual void OnEventObserved(const ui::Event& event, Window* target) = 0; 45 virtual void OnPointerEventObserved(const ui::PointerEvent& event,
46 Window* target) = 0;
46 47
47 protected: 48 protected:
48 virtual ~WindowTreeClientDelegate() {} 49 virtual ~WindowTreeClientDelegate() {}
49 }; 50 };
50 51
51 } // namespace ui 52 } // namespace ui
52 53
53 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_DELEGATE_H_ 54 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698