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

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

Issue 2657873006: Remove WindowTreeClientDelegate::GetCaptureClient() and WindowTreeClient::GetCaptureClient(). (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/aura/test/aura_test_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21
22 namespace client {
23 class CaptureClient;
24 }
25
26 // Interface implemented by an application using mus. 22 // Interface implemented by an application using mus.
27 class AURA_EXPORT WindowTreeClientDelegate { 23 class AURA_EXPORT WindowTreeClientDelegate {
28 public: 24 public:
29 // Called when the application implementing this interface is embedded. 25 // Called when the application implementing this interface is embedded.
30 // NOTE: this is only invoked if the WindowTreeClient is created with an 26 // NOTE: this is only invoked if the WindowTreeClient is created with an
31 // InterfaceRequest. 27 // InterfaceRequest.
32 virtual void OnEmbed(std::unique_ptr<WindowTreeHostMus> window_tree_host) = 0; 28 virtual void OnEmbed(std::unique_ptr<WindowTreeHostMus> window_tree_host) = 0;
33 29
34 // Sent when another app is embedded in |root| (one of the roots of the 30 // Sent when another app is embedded in |root| (one of the roots of the
35 // connection). Afer this call |root| is deleted. If the associated 31 // connection). Afer this call |root| is deleted. If the associated
(...skipping 19 matching lines...) Expand all
55 // have no real effect. Generally when this is called clients should delete 51 // have no real effect. Generally when this is called clients should delete
56 // the corresponding WindowTreeClient. 52 // the corresponding WindowTreeClient.
57 virtual void OnLostConnection(WindowTreeClient* client) = 0; 53 virtual void OnLostConnection(WindowTreeClient* client) = 0;
58 54
59 // Called when the WindowTreeClient receives an input event observed via 55 // Called when the WindowTreeClient receives an input event observed via
60 // StartPointerWatcher(). |target| may be null for events that were sent to 56 // StartPointerWatcher(). |target| may be null for events that were sent to
61 // windows owned by other processes. 57 // windows owned by other processes.
62 virtual void OnPointerEventObserved(const ui::PointerEvent& event, 58 virtual void OnPointerEventObserved(const ui::PointerEvent& event,
63 Window* target) = 0; 59 Window* target) = 0;
64 60
65 // Mus expects a single CaptureClient is used for all WindowTreeHosts. This
66 // returns it. GetCaptureClient() is called from the constructor.
67 virtual client::CaptureClient* GetCaptureClient() = 0;
68
69 virtual PropertyConverter* GetPropertyConverter() = 0; 61 virtual PropertyConverter* GetPropertyConverter() = 0;
70 62
71 protected: 63 protected:
72 virtual ~WindowTreeClientDelegate() {} 64 virtual ~WindowTreeClientDelegate() {}
73 }; 65 };
74 66
75 } // namespace aura 67 } // namespace aura
76 68
77 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_DELEGATE_H_ 69 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/aura/test/aura_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698