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

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: SetBounds + rebase 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 18 matching lines...) Expand all
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 private: 33 private:
34 bool IsDocked() const; 34 bool IsDocked() const;
35 35
36 void SendClientAreaToServer(); 36 void SendClientAreaToServer();
37 void SendHitTestMaskToServer(); 37 void SendHitTestMaskToServer();
38 38
39 // Helper function to get the scale factor.
40 float GetScaleFactor() const;
41
42 void SetBoundsInDips(const gfx::Rect& bounds_in_dips);
43
39 // DesktopWindowTreeHost: 44 // DesktopWindowTreeHost:
40 void Init(aura::Window* content_window, 45 void Init(aura::Window* content_window,
41 const Widget::InitParams& params) override; 46 const Widget::InitParams& params) override;
42 void OnNativeWidgetCreated(const Widget::InitParams& params) override; 47 void OnNativeWidgetCreated(const Widget::InitParams& params) override;
43 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; 48 std::unique_ptr<corewm::Tooltip> CreateTooltip() override;
44 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( 49 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient(
45 DesktopNativeCursorManager* cursor_manager) override; 50 DesktopNativeCursorManager* cursor_manager) override;
46 void Close() override; 51 void Close() override;
47 void CloseNow() override; 52 void CloseNow() override;
48 aura::WindowTreeHost* AsWindowTreeHost() override; 53 aura::WindowTreeHost* AsWindowTreeHost() override;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 132
128 // Used so that Close() isn't immediate. 133 // Used so that Close() isn't immediate.
129 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; 134 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_;
130 135
131 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); 136 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus);
132 }; 137 };
133 138
134 } // namespace views 139 } // namespace views
135 140
136 #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 | « blimp/client/public/contents/blimp_contents_view.h ('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