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

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

Issue 2480273003: Revert of Improves focus/activation for aura-mus and DesktopNativeWidgetAura (Closed)
Patch Set: Created 4 years, 1 month 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 ui { 15 namespace ui {
16 class Event; 16 class Event;
17 } 17 }
18 18
19 namespace aura { 19 namespace aura {
20 20
21 class PropertyConverter; 21 class PropertyConverter;
22 class Window; 22 class Window;
23 class WindowTreeClient; 23 class WindowTreeClient;
24 class WindowTreeHostMus; 24 class WindowTreeHostMus;
25 25
26 namespace client { 26 namespace client {
27 class CaptureClient; 27 class CaptureClient;
28 class FocusClient;
28 } 29 }
29 30
30 // Interface implemented by an application using mus. 31 // Interface implemented by an application using mus.
31 class AURA_EXPORT WindowTreeClientDelegate { 32 class AURA_EXPORT WindowTreeClientDelegate {
32 public: 33 public:
33 // Called when the application implementing this interface is embedded. 34 // Called when the application implementing this interface is embedded.
34 // NOTE: this is only invoked if the WindowTreeClient is created with an 35 // NOTE: this is only invoked if the WindowTreeClient is created with an
35 // InterfaceRequest. 36 // InterfaceRequest.
36 virtual void OnEmbed(std::unique_ptr<WindowTreeHostMus> window_tree_host) = 0; 37 virtual void OnEmbed(std::unique_ptr<WindowTreeHostMus> window_tree_host) = 0;
37 38
(...skipping 14 matching lines...) Expand all
52 // have no real effect. Generally when this is called clients should delete 53 // have no real effect. Generally when this is called clients should delete
53 // the corresponding WindowTreeClient. 54 // the corresponding WindowTreeClient.
54 virtual void OnLostConnection(WindowTreeClient* client) = 0; 55 virtual void OnLostConnection(WindowTreeClient* client) = 0;
55 56
56 // Called when the WindowTreeClient receives an input event observed via 57 // Called when the WindowTreeClient receives an input event observed via
57 // StartPointerWatcher(). |target| may be null for events that were sent to 58 // StartPointerWatcher(). |target| may be null for events that were sent to
58 // windows owned by other processes. 59 // windows owned by other processes.
59 virtual void OnPointerEventObserved(const ui::PointerEvent& event, 60 virtual void OnPointerEventObserved(const ui::PointerEvent& event,
60 Window* target) = 0; 61 Window* target) = 0;
61 62
63 // Mus expects a single FocusClient is used for all WindowTreeHosts. This
64 // returns it. GetFocusClient() is called from the constructor.
65 virtual client::FocusClient* GetFocusClient() = 0;
66
62 // Mus expects a single CaptureClient is used for all WindowTreeHosts. This 67 // Mus expects a single CaptureClient is used for all WindowTreeHosts. This
63 // returns it. GetCaptureClient() is called from the constructor. 68 // returns it. GetCaptureClient() is called from the constructor.
64 virtual client::CaptureClient* GetCaptureClient() = 0; 69 virtual client::CaptureClient* GetCaptureClient() = 0;
65 70
66 virtual PropertyConverter* GetPropertyConverter() = 0; 71 virtual PropertyConverter* GetPropertyConverter() = 0;
67 72
68 protected: 73 protected:
69 virtual ~WindowTreeClientDelegate() {} 74 virtual ~WindowTreeClientDelegate() {}
70 }; 75 };
71 76
72 } // namespace aura 77 } // namespace aura
73 78
74 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_DELEGATE_H_ 79 #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