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

Side by Side Diff: chrome/browser/chromeos/first_run/steps/app_list_step.cc

Issue 823133004: Cleanup: Update the path to gfx rect headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rect_f.h Created 5 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/first_run/steps/app_list_step.h" 5 #include "chrome/browser/chromeos/first_run/steps/app_list_step.h"
6 6
7 #include "ash/first_run/first_run_helper.h" 7 #include "ash/first_run/first_run_helper.h"
8 #include "chrome/browser/chromeos/first_run/step_names.h" 8 #include "chrome/browser/chromeos/first_run/step_names.h"
9 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h" 9 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 11
12 namespace { 12 namespace {
13 13
14 const int kCircleRadius = 30; 14 const int kCircleRadius = 30;
15 15
16 } // namespace 16 } // namespace
17 17
18 namespace chromeos { 18 namespace chromeos {
19 namespace first_run { 19 namespace first_run {
20 20
21 AppListStep::AppListStep(ash::FirstRunHelper* shell_helper, 21 AppListStep::AppListStep(ash::FirstRunHelper* shell_helper,
22 FirstRunActor* actor) 22 FirstRunActor* actor)
23 : Step(kAppListStep, shell_helper, actor) { 23 : Step(kAppListStep, shell_helper, actor) {
24 } 24 }
25 25
26 void AppListStep::DoShow() { 26 void AppListStep::DoShow() {
27 gfx::Rect button_bounds = shell_helper()->GetAppListButtonBounds(); 27 gfx::Rect button_bounds = shell_helper()->GetAppListButtonBounds();
28 gfx::Point center = button_bounds.CenterPoint(); 28 gfx::Point center = button_bounds.CenterPoint();
29 actor()->AddRoundHole(center.x(), center.y(), kCircleRadius); 29 actor()->AddRoundHole(center.x(), center.y(), kCircleRadius);
30 actor()->ShowStepPointingTo(name(), center.x(), center.y(), kCircleRadius); 30 actor()->ShowStepPointingTo(name(), center.x(), center.y(), kCircleRadius);
31 } 31 }
32 32
33 } // namespace first_run 33 } // namespace first_run
34 } // namespace chromeos 34 } // namespace chromeos
35 35
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/display/overscan_calibrator.h ('k') | chrome/browser/chromeos/first_run/steps/help_step.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698