OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |