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

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

Issue 2504793002: Scale bounds in DesktopWindowTreeHostMus and in calls to SetBounds. (Closed)
Patch Set: blimp Created 4 years, 1 month 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // WindowTreeHostMus: 95 // WindowTreeHostMus:
96 void ShowImpl() override; 96 void ShowImpl() override;
97 void HideImpl() override; 97 void HideImpl() override;
98 void SetBounds(const gfx::Rect& bounds_in_pixels) override; 98 void SetBounds(const gfx::Rect& bounds_in_pixels) override;
99 99
100 // aura::EnvObserver: 100 // aura::EnvObserver:
101 void OnWindowInitialized(aura::Window* window) override; 101 void OnWindowInitialized(aura::Window* window) override;
102 void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client, 102 void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client,
103 aura::Window* window) override; 103 aura::Window* window) override;
104 104
105 // Helper function to get the scale factor.
106 float GetScaleFactor() const;
107
105 internal::NativeWidgetDelegate* native_widget_delegate_; 108 internal::NativeWidgetDelegate* native_widget_delegate_;
106 109
107 DesktopNativeWidgetAura* desktop_native_widget_aura_; 110 DesktopNativeWidgetAura* desktop_native_widget_aura_;
108 111
109 // State to restore window to when exiting fullscreen. Only valid if 112 // State to restore window to when exiting fullscreen. Only valid if
110 // fullscreen. 113 // fullscreen.
111 ui::WindowShowState fullscreen_restore_state_; 114 ui::WindowShowState fullscreen_restore_state_;
112 115
113 // We can optionally have a parent which can order us to close, or own 116 // We can optionally have a parent which can order us to close, or own
114 // children who we're responsible for closing when we CloseNow(). 117 // children who we're responsible for closing when we CloseNow().
115 DesktopWindowTreeHostMus* parent_ = nullptr; 118 DesktopWindowTreeHostMus* parent_ = nullptr;
116 std::set<DesktopWindowTreeHostMus*> children_; 119 std::set<DesktopWindowTreeHostMus*> children_;
117 120
118 bool is_active_ = false; 121 bool is_active_ = false;
119 122
120 // Used so that Close() isn't immediate. 123 // Used so that Close() isn't immediate.
121 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; 124 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_;
122 125
123 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); 126 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus);
124 }; 127 };
125 128
126 } // namespace views 129 } // namespace views
127 130
128 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ 131 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698