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

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

Issue 2579883002: Scale bounds in aura-mus client-lib and NativeWidgetMus in hdpi mode. (Closed)
Patch Set: sadrul@'s comments 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/aura/mus/window_tree_host_mus.cc ('k') | ui/views/mus/native_widget_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MUS_NATIVE_WIDGET_MUS_H_ 5 #ifndef UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Returns the native widget for a ui::Window, or null if there is none. 92 // Returns the native widget for a ui::Window, or null if there is none.
93 static NativeWidgetMus* GetForWindow(ui::Window* window); 93 static NativeWidgetMus* GetForWindow(ui::Window* window);
94 94
95 // Returns the widget for a ui::Window, or null if there is none. 95 // Returns the widget for a ui::Window, or null if there is none.
96 static Widget* GetWidgetForWindow(ui::Window* window); 96 static Widget* GetWidgetForWindow(ui::Window* window);
97 97
98 ui::mojom::CompositorFrameSinkType compositor_frame_sink_type() const { 98 ui::mojom::CompositorFrameSinkType compositor_frame_sink_type() const {
99 return compositor_frame_sink_type_; 99 return compositor_frame_sink_type_;
100 } 100 }
101 ui::Window* window() { return window_; } 101 ui::Window* window() { return window_; }
102 aura::Window* aura_window() { return content_; }
102 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); } 103 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); }
103 104
104 aura::Window* GetRootWindow(); 105 aura::Window* GetRootWindow();
105 106
106 void OnPlatformWindowClosed(); 107 void OnPlatformWindowClosed();
107 void OnActivationChanged(bool active); 108 void OnActivationChanged(bool active);
108 109
109 protected: 110 protected:
110 // Updates the client area in the ui::Window. 111 // Updates the client area in the ui::Window.
111 virtual void UpdateClientArea(); 112 virtual void UpdateClientArea();
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 std::unique_ptr<InputMethodMus> input_method_; 306 std::unique_ptr<InputMethodMus> input_method_;
306 307
307 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; 308 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_;
308 309
309 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); 310 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus);
310 }; 311 };
311 312
312 } // namespace views 313 } // namespace views
313 314
314 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 315 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698