| 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/service_manager/public/interfaces/interface_provider.mojom.h" | 10 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" |
| 11 #include "services/ui/public/interfaces/window_tree.mojom.h" | 11 #include "services/ui/public/interfaces/window_tree.mojom.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 class Event; | |
| 15 } | |
| 16 | |
| 17 namespace ui { | |
| 18 | 14 |
| 19 class Window; | 15 class Window; |
| 20 class WindowTreeClient; | 16 class WindowTreeClient; |
| 21 | 17 |
| 22 // Interface implemented by an application using mus. | 18 // Interface implemented by an application using mus. |
| 23 class WindowTreeClientDelegate { | 19 class WindowTreeClientDelegate { |
| 24 public: | 20 public: |
| 25 // Called when the application implementing this interface is embedded at | 21 // Called when the application implementing this interface is embedded at |
| 26 // |root|. | 22 // |root|. |
| 27 // NOTE: this is only invoked if the WindowTreeClient is created with an | 23 // NOTE: this is only invoked if the WindowTreeClient is created with an |
| (...skipping 24 matching lines...) Expand all Loading... |
| 52 virtual void OnPointerEventObserved(const ui::PointerEvent& event, | 48 virtual void OnPointerEventObserved(const ui::PointerEvent& event, |
| 53 Window* target) = 0; | 49 Window* target) = 0; |
| 54 | 50 |
| 55 protected: | 51 protected: |
| 56 virtual ~WindowTreeClientDelegate() {} | 52 virtual ~WindowTreeClientDelegate() {} |
| 57 }; | 53 }; |
| 58 | 54 |
| 59 } // namespace ui | 55 } // namespace ui |
| 60 | 56 |
| 61 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_DELEGATE_H_ | 57 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_DELEGATE_H_ |
| OLD | NEW |