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

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: feedback 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 // Called when the window was deleted on the server.
38 void ServerDestroyedWindow() { CloseNow(); }
39
37 private: 40 private:
38 bool IsDocked() const; 41 bool IsDocked() const;
39 42
40 void SendClientAreaToServer(); 43 void SendClientAreaToServer();
41 void SendHitTestMaskToServer(); 44 void SendHitTestMaskToServer();
42 45
43 // Helper function to get the scale factor. 46 // Helper function to get the scale factor.
44 float GetScaleFactor() const; 47 float GetScaleFactor() const;
45 48
46 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip); 49 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 143
141 // Used so that Close() isn't immediate. 144 // Used so that Close() isn't immediate.
142 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; 145 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_;
143 146
144 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); 147 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus);
145 }; 148 };
146 149
147 } // namespace views 150 } // namespace views
148 151
149 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ 152 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698