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

Side by Side Diff: components/mus/public/cpp/window_tree_delegate.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_WINDOW_TREE_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_DELEGATE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_DELEGATE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/mus/public/interfaces/window_tree.mojom.h" 10 #include "components/mus/public/interfaces/window_tree.mojom.h"
11 #include "services/shell/public/interfaces/interface_provider.mojom.h" 11 #include "services/shell/public/interfaces/interface_provider.mojom.h"
12 12
13 namespace ui {
14 class Event;
15 }
16
13 namespace mus { 17 namespace mus {
14 18
15 class Window; 19 class Window;
16 class WindowTreeConnection; 20 class WindowTreeConnection;
17 21
18 // Interface implemented by an application using the window manager. 22 // Interface implemented by an application using the window manager.
19 // 23 //
20 // WindowTreeConnection is deleted by any of the following: 24 // WindowTreeConnection is deleted by any of the following:
21 // . If all the roots of the connection are destroyed and the connection is 25 // . If all the roots of the connection are destroyed and the connection is
22 // configured to delete when there are no roots (the default). This happens 26 // configured to delete when there are no roots (the default). This happens
(...skipping 17 matching lines...) Expand all
40 // connection). Afer this call |root| is deleted. If |root| is the only root 44 // connection). Afer this call |root| is deleted. If |root| is the only root
41 // and the connection is configured to delete when there are no roots (the 45 // and the connection is configured to delete when there are no roots (the
42 // default), then after |root| is destroyed the connection is destroyed as 46 // default), then after |root| is destroyed the connection is destroyed as
43 // well. 47 // well.
44 virtual void OnUnembed(Window* root); 48 virtual void OnUnembed(Window* root);
45 49
46 // Called from the destructor of WindowTreeConnection after all the Windows 50 // Called from the destructor of WindowTreeConnection after all the Windows
47 // have been destroyed. |connection| is no longer valid after this call. 51 // have been destroyed. |connection| is no longer valid after this call.
48 virtual void OnConnectionLost(WindowTreeConnection* connection) = 0; 52 virtual void OnConnectionLost(WindowTreeConnection* connection) = 0;
49 53
54 // Called when the WindowTreeConnection receives an input event observed via
55 // SetEventObserver().
56 virtual void OnEventObserved(const ui::Event& event) = 0;
57
50 protected: 58 protected:
51 virtual ~WindowTreeDelegate() {} 59 virtual ~WindowTreeDelegate() {}
52 }; 60 };
53 61
54 } // namespace mus 62 } // namespace mus
55 63
56 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_DELEGATE_H_ 64 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/window_tree_connection.h ('k') | content/renderer/mus/compositor_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698