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

Side by Side Diff: ui/views/mus/mus_client.h

Issue 2674683002: Revert: Change CaptureSynchronizer and PointerWatcherEventRouter to support multiple CaptureClients (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/views/mus/desktop_window_tree_host_mus_unittest.cc ('k') | ui/views/mus/mus_client.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_VIEWS_MUS_MUS_CLIENT_H_ 5 #ifndef UI_VIEWS_MUS_MUS_CLIENT_H_
6 #define UI_VIEWS_MUS_MUS_CLIENT_H_ 6 #define UI_VIEWS_MUS_MUS_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "ui/aura/client/capture_client.h"
16 #include "ui/aura/mus/window_tree_client_delegate.h" 15 #include "ui/aura/mus/window_tree_client_delegate.h"
17 #include "ui/base/dragdrop/os_exchange_data_provider_factory.h" 16 #include "ui/base/dragdrop/os_exchange_data_provider_factory.h"
18 #include "ui/views/mus/mus_export.h" 17 #include "ui/views/mus/mus_export.h"
19 #include "ui/views/mus/screen_mus_delegate.h" 18 #include "ui/views/mus/screen_mus_delegate.h"
20 #include "ui/views/widget/widget.h" 19 #include "ui/views/widget/widget.h"
21 20
22 namespace aura { 21 namespace aura {
23 class PropertyConverter; 22 class PropertyConverter;
24 class Window; 23 class Window;
25 class WindowTreeClient; 24 class WindowTreeClient;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 PointerWatcherEventRouter* pointer_watcher_event_router() { 94 PointerWatcherEventRouter* pointer_watcher_event_router() {
96 return pointer_watcher_event_router_.get(); 95 return pointer_watcher_event_router_.get();
97 } 96 }
98 97
99 // Creates DesktopNativeWidgetAura with DesktopWindowTreeHostMus. This is 98 // Creates DesktopNativeWidgetAura with DesktopWindowTreeHostMus. This is
100 // set as the factory function used for creating NativeWidgets when a 99 // set as the factory function used for creating NativeWidgets when a
101 // NativeWidget has not been explicitly set. 100 // NativeWidget has not been explicitly set.
102 NativeWidget* CreateNativeWidget(const Widget::InitParams& init_params, 101 NativeWidget* CreateNativeWidget(const Widget::InitParams& init_params,
103 internal::NativeWidgetDelegate* delegate); 102 internal::NativeWidgetDelegate* delegate);
104 103
105 // Called when the capture client has been set for a window to notify
106 // PointerWatcherEventRouter and CaptureSynchronizer.
107 void OnCaptureClientSet(aura::client::CaptureClient* capture_client);
108
109 // Called when the capture client will be unset for a window to notify
110 // PointerWatcherEventRouter and CaptureSynchronizer.
111 void OnCaptureClientUnset(aura::client::CaptureClient* capture_client);
112
113 void AddObserver(MusClientObserver* observer); 104 void AddObserver(MusClientObserver* observer);
114 void RemoveObserver(MusClientObserver* observer); 105 void RemoveObserver(MusClientObserver* observer);
115 106
116 void SetMusPropertyMirror(std::unique_ptr<MusPropertyMirror> mirror); 107 void SetMusPropertyMirror(std::unique_ptr<MusPropertyMirror> mirror);
117 MusPropertyMirror* mus_property_mirror() { 108 MusPropertyMirror* mus_property_mirror() {
118 return mus_property_mirror_.get(); 109 return mus_property_mirror_.get();
119 } 110 }
120 111
121 private: 112 private:
122 friend class AuraInit; 113 friend class AuraInit;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 153
163 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> 154 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager>
164 discardable_shared_memory_manager_; 155 discardable_shared_memory_manager_;
165 156
166 DISALLOW_COPY_AND_ASSIGN(MusClient); 157 DISALLOW_COPY_AND_ASSIGN(MusClient);
167 }; 158 };
168 159
169 } // namespace views 160 } // namespace views
170 161
171 #endif // UI_VIEWS_MUS_MUS_CLIENT_H_ 162 #endif // UI_VIEWS_MUS_MUS_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus_unittest.cc ('k') | ui/views/mus/mus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698