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

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

Issue 2908333003: [mus+ash] Removes WmWindow from ash (app_list, frame, metrics, session, system, wallpaper) (Closed)
Patch Set: [mus ash] Removes WmWindow from ash (rebase, nits and cleanup of use of ResizeHandleWindowTargeter) 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
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/shell_port.h" 7 #include "ash/shell_port.h"
8 #include "ash/wm_window.h"
9 #include "third_party/skia/include/core/SkPaint.h" 8 #include "third_party/skia/include/core/SkPaint.h"
10 #include "third_party/skia/include/core/SkPath.h" 9 #include "third_party/skia/include/core/SkPath.h"
11 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
12 #include "ui/compositor/layer.h" 11 #include "ui/compositor/layer.h"
13 #include "ui/compositor/paint_recorder.h" 12 #include "ui/compositor/paint_recorder.h"
14 #include "ui/display/display.h" 13 #include "ui/display/display.h"
15 #include "ui/display/screen.h" 14 #include "ui/display/screen.h"
16 #include "ui/gfx/canvas.h" 15 #include "ui/gfx/canvas.h"
17 #include "ui/wm/core/coordinate_conversion.h" 16 #include "ui/wm/core/coordinate_conversion.h"
18 17
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 flags.setColor( 71 flags.setColor(
73 SkColorSetARGBMacro(255 * (i) * (i) / (w * w), red_, green_, blue_)); 72 SkColorSetARGBMacro(255 * (i) * (i) / (w * w), red_, green_, blue_));
74 SkPath path; 73 SkPath path;
75 path.addOval(SkRect::MakeXYWH(r.x(), r.y(), r.width(), r.height())); 74 path.addOval(SkRect::MakeXYWH(r.x(), r.y(), r.width(), r.height()));
76 r.Inset(1, 1, 1, 1); 75 r.Inset(1, 1, 1, 1);
77 recorder.canvas()->DrawPath(path, flags); 76 recorder.canvas()->DrawPath(path, flags);
78 } 77 }
79 } 78 }
80 79
81 } // namespace chromeos 80 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698