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_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 : public DesktopWindowTreeHost, | 28 : public DesktopWindowTreeHost, |
29 public MusClientObserver, | 29 public MusClientObserver, |
30 public WidgetObserver, | 30 public WidgetObserver, |
31 public aura::WindowObserver, | 31 public aura::WindowObserver, |
32 public aura::WindowTreeHostMus, | 32 public aura::WindowTreeHostMus, |
33 public aura::EnvObserver { | 33 public aura::EnvObserver { |
34 public: | 34 public: |
35 DesktopWindowTreeHostMus( | 35 DesktopWindowTreeHostMus( |
36 internal::NativeWidgetDelegate* native_widget_delegate, | 36 internal::NativeWidgetDelegate* native_widget_delegate, |
37 DesktopNativeWidgetAura* desktop_native_widget_aura, | 37 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 38 const cc::FrameSinkId& frame_sink_id, |
38 const std::map<std::string, std::vector<uint8_t>>* mus_properties); | 39 const std::map<std::string, std::vector<uint8_t>>* mus_properties); |
39 ~DesktopWindowTreeHostMus() override; | 40 ~DesktopWindowTreeHostMus() override; |
40 | 41 |
41 // Called when the window was deleted on the server. | 42 // Called when the window was deleted on the server. |
42 void ServerDestroyedWindow() { CloseNow(); } | 43 void ServerDestroyedWindow() { CloseNow(); } |
43 | 44 |
44 // Controls whether the client area is automatically updated as necessary. | 45 // Controls whether the client area is automatically updated as necessary. |
45 void set_auto_update_client_area(bool value) { | 46 void set_auto_update_client_area(bool value) { |
46 auto_update_client_area_ = value; | 47 auto_update_client_area_ = value; |
47 } | 48 } |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 165 |
165 // Used so that Close() isn't immediate. | 166 // Used so that Close() isn't immediate. |
166 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; | 167 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; |
167 | 168 |
168 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); | 169 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); |
169 }; | 170 }; |
170 | 171 |
171 } // namespace views | 172 } // namespace views |
172 | 173 |
173 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 174 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
OLD | NEW |