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

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

Issue 2669203002: Revert: Remove WindowTreeClientDelegate::GetCaptureClient() and WindowTreeClient::GetCaptureClient() (Closed)
Patch Set: 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
22 // Interface implemented by an application using mus. 26 // Interface implemented by an application using mus.
23 class AURA_EXPORT WindowTreeClientDelegate { 27 class AURA_EXPORT WindowTreeClientDelegate {
24 public: 28 public:
25 // Called when the application implementing this interface is embedded. 29 // Called when the application implementing this interface is embedded.
26 // NOTE: this is only invoked if the WindowTreeClient is created with an 30 // NOTE: this is only invoked if the WindowTreeClient is created with an
27 // InterfaceRequest. 31 // InterfaceRequest.
28 virtual void OnEmbed(std::unique_ptr<WindowTreeHostMus> window_tree_host) = 0; 32 virtual void OnEmbed(std::unique_ptr<WindowTreeHostMus> window_tree_host) = 0;
29 33
30 // Sent when another app is embedded in |root| (one of the roots of the 34 // Sent when another app is embedded in |root| (one of the roots of the
31 // connection). Afer this call |root| is deleted. If the associated 35 // connection). Afer this call |root| is deleted. If the associated
(...skipping 19 matching lines...) Expand all
51 // have no real effect. Generally when this is called clients should delete 55 // have no real effect. Generally when this is called clients should delete
52 // the corresponding WindowTreeClient. 56 // the corresponding WindowTreeClient.
53 virtual void OnLostConnection(WindowTreeClient* client) = 0; 57 virtual void OnLostConnection(WindowTreeClient* client) = 0;
54 58
55 // Called when the WindowTreeClient receives an input event observed via 59 // Called when the WindowTreeClient receives an input event observed via
56 // StartPointerWatcher(). |target| may be null for events that were sent to 60 // StartPointerWatcher(). |target| may be null for events that were sent to
57 // windows owned by other processes. 61 // windows owned by other processes.
58 virtual void OnPointerEventObserved(const ui::PointerEvent& event, 62 virtual void OnPointerEventObserved(const ui::PointerEvent& event,
59 Window* target) = 0; 63 Window* target) = 0;
60 64
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
61 virtual PropertyConverter* GetPropertyConverter() = 0; 69 virtual PropertyConverter* GetPropertyConverter() = 0;
62 70
63 protected: 71 protected:
64 virtual ~WindowTreeClientDelegate() {} 72 virtual ~WindowTreeClientDelegate() {}
65 }; 73 };
66 74
67 } // namespace aura 75 } // namespace aura
68 76
69 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_DELEGATE_H_ 77 #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