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

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

Issue 2823903005: Extracts parameters to WindowTreeHostMus into structure (Closed)
Patch Set: move constructor Created 3 years, 8 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
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_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 15 matching lines...) Expand all
26 26
27 class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus 27 class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
28 : public DesktopWindowTreeHost, 28 : public DesktopWindowTreeHost,
29 public MusClientObserver, 29 public MusClientObserver,
30 public WidgetObserver, 30 public WidgetObserver,
31 public aura::FocusSynchronizerObserver, 31 public aura::FocusSynchronizerObserver,
32 public aura::WindowObserver, 32 public aura::WindowObserver,
33 public aura::WindowTreeHostMus { 33 public aura::WindowTreeHostMus {
34 public: 34 public:
35 DesktopWindowTreeHostMus( 35 DesktopWindowTreeHostMus(
36 aura::WindowTreeHostMusInitParams init_params,
36 internal::NativeWidgetDelegate* native_widget_delegate, 37 internal::NativeWidgetDelegate* native_widget_delegate,
37 DesktopNativeWidgetAura* desktop_native_widget_aura, 38 DesktopNativeWidgetAura* desktop_native_widget_aura);
38 const cc::FrameSinkId& frame_sink_id,
39 const std::map<std::string, std::vector<uint8_t>>* mus_properties);
40 ~DesktopWindowTreeHostMus() override; 39 ~DesktopWindowTreeHostMus() override;
41 40
42 // Called when the window was deleted on the server. 41 // Called when the window was deleted on the server.
43 void ServerDestroyedWindow() { CloseNow(); } 42 void ServerDestroyedWindow() { CloseNow(); }
44 43
45 // Controls whether the client area is automatically updated as necessary. 44 // Controls whether the client area is automatically updated as necessary.
46 void set_auto_update_client_area(bool value) { 45 void set_auto_update_client_area(bool value) {
47 auto_update_client_area_ = value; 46 auto_update_client_area_ = value;
48 } 47 }
49 48
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 161
163 // Used so that Close() isn't immediate. 162 // Used so that Close() isn't immediate.
164 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; 163 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_;
165 164
166 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); 165 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus);
167 }; 166 };
168 167
169 } // namespace views 168 } // namespace views
170 169
171 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ 170 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_host_mus_unittest.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698