| OLD | NEW |
| 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_CHROMEOS_DISPLAY_TOUCH_CALIBRATOR_TOUCH_CALIBRATOR_VIEW_H
_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_TOUCH_CALIBRATOR_TOUCH_CALIBRATOR_VIEW_H
_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_TOUCH_CALIBRATOR_TOUCH_CALIBRATOR_VIEW_H
_ | 6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_TOUCH_CALIBRATOR_TOUCH_CALIBRATOR_VIEW_H
_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/compositor/layer_animation_observer.h" | 9 #include "ui/compositor/layer_animation_observer.h" |
| 10 #include "ui/display/display.h" | 10 #include "ui/display/display.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void InitViewContents(); | 105 void InitViewContents(); |
| 106 | 106 |
| 107 // The target display on which this view is rendered on. | 107 // The target display on which this view is rendered on. |
| 108 const display::Display display_; | 108 const display::Display display_; |
| 109 | 109 |
| 110 // True if this view is on the display that is being calibrated. | 110 // True if this view is on the display that is being calibrated. |
| 111 bool is_primary_view_ = false; | 111 bool is_primary_view_ = false; |
| 112 | 112 |
| 113 std::unique_ptr<views::Widget> widget_; | 113 std::unique_ptr<views::Widget> widget_; |
| 114 | 114 |
| 115 SkPaint paint_; | 115 cc::PaintFlags flags_; |
| 116 | 116 |
| 117 // Defines the bounds for the background animation. | 117 // Defines the bounds for the background animation. |
| 118 gfx::RectF background_rect_; | 118 gfx::RectF background_rect_; |
| 119 | 119 |
| 120 // Text label indicating how to exit the touch calibration. | 120 // Text label indicating how to exit the touch calibration. |
| 121 views::Label* exit_label_; | 121 views::Label* exit_label_; |
| 122 // Text label indicating the significance of the touch point on screen. | 122 // Text label indicating the significance of the touch point on screen. |
| 123 views::Label* tap_label_; | 123 views::Label* tap_label_; |
| 124 | 124 |
| 125 // Start and end opacity values used during the fade animation. This is set | 125 // Start and end opacity values used during the fade animation. This is set |
| (...skipping 21 matching lines...) Expand all Loading... |
| 147 views::View* touch_point_view_; | 147 views::View* touch_point_view_; |
| 148 | 148 |
| 149 State state_ = UNKNOWN; | 149 State state_ = UNKNOWN; |
| 150 | 150 |
| 151 DISALLOW_COPY_AND_ASSIGN(TouchCalibratorView); | 151 DISALLOW_COPY_AND_ASSIGN(TouchCalibratorView); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 } // namespace chromeos | 154 } // namespace chromeos |
| 155 | 155 |
| 156 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_TOUCH_CALIBRATOR_TOUCH_CALIBRATOR_VIE
W_H_ | 156 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_TOUCH_CALIBRATOR_TOUCH_CALIBRATOR_VIE
W_H_ |
| OLD | NEW |