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

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

Issue 2542493002: Replace kCanMaximize/Minimize/Resize with kResizeBehavior. (Closed)
Patch Set: Fix int->bool compile issue. 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
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12 matching lines...) Expand all
23 public MusClientObserver, 23 public MusClientObserver,
24 public aura::WindowTreeHostMus, 24 public aura::WindowTreeHostMus,
25 public aura::EnvObserver { 25 public aura::EnvObserver {
26 public: 26 public:
27 DesktopWindowTreeHostMus( 27 DesktopWindowTreeHostMus(
28 internal::NativeWidgetDelegate* native_widget_delegate, 28 internal::NativeWidgetDelegate* native_widget_delegate,
29 DesktopNativeWidgetAura* desktop_native_widget_aura, 29 DesktopNativeWidgetAura* desktop_native_widget_aura,
30 const std::map<std::string, std::vector<uint8_t>>* mus_properties); 30 const std::map<std::string, std::vector<uint8_t>>* mus_properties);
31 ~DesktopWindowTreeHostMus() override; 31 ~DesktopWindowTreeHostMus() override;
32 32
33 // Returns a bitmask of the resize types. See ui::mojom::kResizeBehavior.
34 // |delegate| may be null.
35 static int32_t GetResizeBehaviorFromDelegate(WidgetDelegate* delegate);
36
37 private: 33 private:
38 bool IsDocked() const; 34 bool IsDocked() const;
39 35
40 void SendClientAreaToServer(); 36 void SendClientAreaToServer();
41 void SendHitTestMaskToServer(); 37 void SendHitTestMaskToServer();
42 38
43 // Helper function to get the scale factor. 39 // Helper function to get the scale factor.
44 float GetScaleFactor() const; 40 float GetScaleFactor() const;
45 41
46 void SetBoundsInDips(const gfx::Rect& bounds_in_dips); 42 void SetBoundsInDips(const gfx::Rect& bounds_in_dips);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 132
137 // Used so that Close() isn't immediate. 133 // Used so that Close() isn't immediate.
138 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; 134 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_;
139 135
140 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); 136 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus);
141 }; 137 };
142 138
143 } // namespace views 139 } // namespace views
144 140
145 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ 141 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/BUILD.gn ('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