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

Side by Side Diff: ui/aura/mus/window_port_mus.h

Issue 2579883002: Scale bounds in aura-mus client-lib and NativeWidgetMus in hdpi mode. (Closed)
Patch Set: sadrul@'s comments Created 3 years, 12 months 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 | « no previous file | ui/aura/mus/window_port_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_AURA_MUS_WINDOW_PORT_MUS_H_ 5 #ifndef UI_AURA_MUS_WINDOW_PORT_MUS_H_
6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_ 6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // automatically removed. Instead the change is explicitly removed. 126 // automatically removed. Instead the change is explicitly removed.
127 TRANSIENT_REORDER, 127 TRANSIENT_REORDER,
128 VISIBLE, 128 VISIBLE,
129 }; 129 };
130 130
131 // Contains data needed to identify a change from the server. 131 // Contains data needed to identify a change from the server.
132 struct ServerChangeData { 132 struct ServerChangeData {
133 // Applies to ADD, ADD_TRANSIENT, REMOVE, REMOVE_TRANSIENT, REORDER and 133 // Applies to ADD, ADD_TRANSIENT, REMOVE, REMOVE_TRANSIENT, REORDER and
134 // TRANSIENT_REORDER. 134 // TRANSIENT_REORDER.
135 Id child_id; 135 Id child_id;
136 // Applies to BOUNDS. 136 // Applies to BOUNDS. This should be in dip.
137 gfx::Rect bounds; 137 gfx::Rect bounds_in_dip;
138 // Applies to VISIBLE. 138 // Applies to VISIBLE.
139 bool visible; 139 bool visible;
140 // Applies to PROPERTY. 140 // Applies to PROPERTY.
141 std::string property_name; 141 std::string property_name;
142 }; 142 };
143 143
144 // Used to identify a change the server. 144 // Used to identify a change the server.
145 struct ServerChange { 145 struct ServerChange {
146 ServerChangeType type; 146 ServerChangeType type;
147 // A unique id assigned to the change and used later on to identify it for 147 // A unique id assigned to the change and used later on to identify it for
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 std::unique_ptr<SurfaceInfo> surface_info_; 250 std::unique_ptr<SurfaceInfo> surface_info_;
251 251
252 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; 252 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL;
253 253
254 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); 254 DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
255 }; 255 };
256 256
257 } // namespace aura 257 } // namespace aura
258 258
259 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ 259 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698