Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / chromeos / first_run / steps / app_list_step.cc
blob5a04839b8bb35a99289ce410d7c3800ca6419b4c
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
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/first_run/steps/app_list_step.h"
7 #include "ash/first_run/first_run_helper.h"
8 #include "chrome/browser/chromeos/first_run/step_names.h"
9 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h"
10 #include "ui/gfx/geometry/rect.h"
12 namespace {
14 const int kCircleRadius = 30;
16 } // namespace
18 namespace chromeos {
19 namespace first_run {
21 AppListStep::AppListStep(ash::FirstRunHelper* shell_helper,
22 FirstRunActor* actor)
23 : Step(kAppListStep, shell_helper, actor) {
26 void AppListStep::DoShow() {
27 gfx::Rect button_bounds = shell_helper()->GetAppListButtonBounds();
28 gfx::Point center = button_bounds.CenterPoint();
29 actor()->AddRoundHole(center.x(), center.y(), kCircleRadius);
30 actor()->ShowStepPointingTo(name(), center.x(), center.y(), kCircleRadius);
33 } // namespace first_run
34 } // namespace chromeos