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

Side by Side Diff: ui/aura/mus/window_tree_client_delegate.h

Issue 2633233003: aura-mus: Implement stacking in DesktopWindowTreeHostMus. (Closed)
Patch Set: Patch cleanup. Created 3 years, 11 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 UI_AURA_MUS_WINDOW_TREE_CLIENT_DELEGATE_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_DELEGATE_H_
6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_DELEGATE_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" 11 #include "services/service_manager/public/interfaces/interface_provider.mojom.h"
12 #include "services/ui/public/interfaces/window_tree.mojom.h" 12 #include "services/ui/public/interfaces/window_tree.mojom.h"
13 #include "ui/aura/aura_export.h" 13 #include "ui/aura/aura_export.h"
14 14
15 namespace aura { 15 namespace aura {
16 16
17 class PropertyConverter; 17 class PropertyConverter;
18 class Window; 18 class Window;
19 class WindowTreeClient; 19 class WindowTreeClient;
20 class WindowTreeHostMus; 20 class WindowTreeHostMus;
21 enum class ChangeType;
21 22
22 namespace client { 23 namespace client {
23 class CaptureClient; 24 class CaptureClient;
24 } 25 }
25 26
26 // Interface implemented by an application using mus. 27 // Interface implemented by an application using mus.
27 class AURA_EXPORT WindowTreeClientDelegate { 28 class AURA_EXPORT WindowTreeClientDelegate {
28 public: 29 public:
29 // Called when the application implementing this interface is embedded. 30 // Called when the application implementing this interface is embedded.
30 // NOTE: this is only invoked if the WindowTreeClient is created with an 31 // NOTE: this is only invoked if the WindowTreeClient is created with an
(...skipping 24 matching lines...) Expand all
55 // have no real effect. Generally when this is called clients should delete 56 // have no real effect. Generally when this is called clients should delete
56 // the corresponding WindowTreeClient. 57 // the corresponding WindowTreeClient.
57 virtual void OnLostConnection(WindowTreeClient* client) = 0; 58 virtual void OnLostConnection(WindowTreeClient* client) = 0;
58 59
59 // Called when the WindowTreeClient receives an input event observed via 60 // Called when the WindowTreeClient receives an input event observed via
60 // StartPointerWatcher(). |target| may be null for events that were sent to 61 // StartPointerWatcher(). |target| may be null for events that were sent to
61 // windows owned by other processes. 62 // windows owned by other processes.
62 virtual void OnPointerEventObserved(const ui::PointerEvent& event, 63 virtual void OnPointerEventObserved(const ui::PointerEvent& event,
63 Window* target) = 0; 64 Window* target) = 0;
64 65
66 // Called during change completion. Implemented in testing delegates.
67 virtual void OnChangeCompleted(ChangeType type, bool success) {}
68
65 // Mus expects a single CaptureClient is used for all WindowTreeHosts. This 69 // Mus expects a single CaptureClient is used for all WindowTreeHosts. This
66 // returns it. GetCaptureClient() is called from the constructor. 70 // returns it. GetCaptureClient() is called from the constructor.
67 virtual client::CaptureClient* GetCaptureClient() = 0; 71 virtual client::CaptureClient* GetCaptureClient() = 0;
68 72
69 virtual PropertyConverter* GetPropertyConverter() = 0; 73 virtual PropertyConverter* GetPropertyConverter() = 0;
70 74
71 protected: 75 protected:
72 virtual ~WindowTreeClientDelegate() {} 76 virtual ~WindowTreeClientDelegate() {}
73 }; 77 };
74 78
75 } // namespace aura 79 } // namespace aura
76 80
77 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_DELEGATE_H_ 81 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698