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

Side by Side Diff: chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc

Issue 2729363002: chromeos: Move files in //ash/common to //ash, part 3 (Closed)
Patch Set: Created 3 years, 9 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
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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698