| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |