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 #include "chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.h" | 5 #include "chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.h" |
6 | 6 |
7 #include "ash/common/wm_window.h" | |
8 #include "ash/display/window_tree_host_manager.h" | 7 #include "ash/display/window_tree_host_manager.h" |
9 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/wm_window.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "third_party/skia/include/core/SkPaint.h" | 11 #include "third_party/skia/include/core/SkPaint.h" |
12 #include "third_party/skia/include/core/SkPath.h" | 12 #include "third_party/skia/include/core/SkPath.h" |
13 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
14 #include "ui/compositor/layer.h" | 14 #include "ui/compositor/layer.h" |
15 #include "ui/compositor/paint_recorder.h" | 15 #include "ui/compositor/paint_recorder.h" |
16 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 | 19 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 flags.setColor( | 73 flags.setColor( |
74 SkColorSetARGBMacro(255 * (i) * (i) / (w * w), red_, green_, blue_)); | 74 SkColorSetARGBMacro(255 * (i) * (i) / (w * w), red_, green_, blue_)); |
75 SkPath path; | 75 SkPath path; |
76 path.addOval(SkRect::MakeXYWH(r.x(), r.y(), r.width(), r.height())); | 76 path.addOval(SkRect::MakeXYWH(r.x(), r.y(), r.width(), r.height())); |
77 r.Inset(1, 1, 1, 1); | 77 r.Inset(1, 1, 1, 1); |
78 recorder.canvas()->DrawPath(path, flags); | 78 recorder.canvas()->DrawPath(path, flags); |
79 } | 79 } |
80 } | 80 } |
81 | 81 |
82 } // namespace chromeos | 82 } // namespace chromeos |
OLD | NEW |