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

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

Issue 2559703003: Converts WindowTreeClientTest to be in terms of aura (Closed)
Patch Set: tweak Created 4 years 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 16 matching lines...) Expand all
27 public MusClientObserver, 27 public MusClientObserver,
28 public aura::WindowTreeHostMus, 28 public aura::WindowTreeHostMus,
29 public aura::EnvObserver { 29 public aura::EnvObserver {
30 public: 30 public:
31 DesktopWindowTreeHostMus( 31 DesktopWindowTreeHostMus(
32 internal::NativeWidgetDelegate* native_widget_delegate, 32 internal::NativeWidgetDelegate* native_widget_delegate,
33 DesktopNativeWidgetAura* desktop_native_widget_aura, 33 DesktopNativeWidgetAura* desktop_native_widget_aura,
34 const std::map<std::string, std::vector<uint8_t>>* mus_properties); 34 const std::map<std::string, std::vector<uint8_t>>* mus_properties);
35 ~DesktopWindowTreeHostMus() override; 35 ~DesktopWindowTreeHostMus() override;
36 36
37 void ServerDestroyedWindow() { CloseNow(); }
msw 2016/12/08 01:20:12 nit: move definition to cc file? Add a comment?
sky 2016/12/08 04:59:45 Added comment. As this function is nothing more th
38
37 private: 39 private:
38 bool IsDocked() const; 40 bool IsDocked() const;
39 41
40 void SendClientAreaToServer(); 42 void SendClientAreaToServer();
41 void SendHitTestMaskToServer(); 43 void SendHitTestMaskToServer();
42 44
43 // Helper function to get the scale factor. 45 // Helper function to get the scale factor.
44 float GetScaleFactor() const; 46 float GetScaleFactor() const;
45 47
46 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip); 48 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 142
141 // Used so that Close() isn't immediate. 143 // Used so that Close() isn't immediate.
142 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; 144 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_;
143 145
144 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); 146 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus);
145 }; 147 };
146 148
147 } // namespace views 149 } // namespace views
148 150
149 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ 151 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698