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

Side by Side Diff: chrome/browser/android/vr_shell/ui_elements/ui_element.h

Issue 2907203002: VR: Soften the floor grid (Closed)
Patch Set: nit Created 3 years, 6 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 | chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h » ('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 CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_UI_ELEMENT_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_UI_ELEMENT_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_UI_ELEMENT_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_UI_ELEMENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 void set_fill(Fill fill) { fill_ = fill; } 208 void set_fill(Fill fill) { fill_ = fill; }
209 209
210 SkColor edge_color() const { return edge_color_; } 210 SkColor edge_color() const { return edge_color_; }
211 void set_edge_color(const SkColor& edge_color) { edge_color_ = edge_color; } 211 void set_edge_color(const SkColor& edge_color) { edge_color_ = edge_color; }
212 212
213 SkColor center_color() const { return center_color_; } 213 SkColor center_color() const { return center_color_; }
214 void set_center_color(const SkColor& center_color) { 214 void set_center_color(const SkColor& center_color) {
215 center_color_ = center_color; 215 center_color_ = center_color;
216 } 216 }
217 217
218 SkColor grid_color() const { return grid_color_; }
219 void set_grid_color(const SkColor& grid_color) { grid_color_ = grid_color; }
220
218 int gridline_count() const { return gridline_count_; } 221 int gridline_count() const { return gridline_count_; }
219 void set_gridline_count(int gridline_count) { 222 void set_gridline_count(int gridline_count) {
220 gridline_count_ = gridline_count; 223 gridline_count_ = gridline_count;
221 } 224 }
222 225
223 int draw_phase() const { return draw_phase_; } 226 int draw_phase() const { return draw_phase_; }
224 void set_draw_phase(int draw_phase) { draw_phase_ = draw_phase; } 227 void set_draw_phase(int draw_phase) { draw_phase_ = draw_phase; }
225 228
226 // This transform can be used by children to derive position of its parent. 229 // This transform can be used by children to derive position of its parent.
227 Transform& inheritable_transform() { return inheritable_transform_; } 230 Transform& inheritable_transform() { return inheritable_transform_; }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 XAnchoring x_anchoring_ = XAnchoring::XNONE; 303 XAnchoring x_anchoring_ = XAnchoring::XNONE;
301 YAnchoring y_anchoring_ = YAnchoring::YNONE; 304 YAnchoring y_anchoring_ = YAnchoring::YNONE;
302 305
303 // Animations that affect the properties of the object over time. 306 // Animations that affect the properties of the object over time.
304 std::vector<std::unique_ptr<Animation>> animations_; 307 std::vector<std::unique_ptr<Animation>> animations_;
305 308
306 Fill fill_ = Fill::NONE; 309 Fill fill_ = Fill::NONE;
307 310
308 SkColor edge_color_ = SK_ColorWHITE; 311 SkColor edge_color_ = SK_ColorWHITE;
309 SkColor center_color_ = SK_ColorWHITE; 312 SkColor center_color_ = SK_ColorWHITE;
313 SkColor grid_color_ = SK_ColorWHITE;
310 314
311 int gridline_count_ = 1; 315 int gridline_count_ = 1;
312 316
313 int draw_phase_ = 1; 317 int draw_phase_ = 1;
314 318
315 // This transform can be used by children to derive position of its parent. 319 // This transform can be used by children to derive position of its parent.
316 Transform inheritable_transform_; 320 Transform inheritable_transform_;
317 321
318 // A flag usable during transformation calculates to avoid duplicate work. 322 // A flag usable during transformation calculates to avoid duplicate work.
319 bool dirty_ = false; 323 bool dirty_ = false;
320 324
321 // An identifier used for testing and debugging, in lieu of a string. 325 // An identifier used for testing and debugging, in lieu of a string.
322 UiElementDebugId debug_id_ = UiElementDebugId::kNone; 326 UiElementDebugId debug_id_ = UiElementDebugId::kNone;
323 327
324 Transform transform_; 328 Transform transform_;
325 329
326 ColorScheme::Mode mode_ = ColorScheme::kModeNormal; 330 ColorScheme::Mode mode_ = ColorScheme::kModeNormal;
327 331
328 DISALLOW_COPY_AND_ASSIGN(UiElement); 332 DISALLOW_COPY_AND_ASSIGN(UiElement);
329 }; 333 };
330 334
331 } // namespace vr_shell 335 } // namespace vr_shell
332 336
333 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_UI_ELEMENT_H_ 337 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_UI_ELEMENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698