Implemented UI for new first-run tutorial.
[chromium-blink-merge.git] / chrome / browser / chromeos / first_run / steps / greeting_step.cc
blob02d3fc11d5e63a17c43876eb424b4653a5761449
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/greeting_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/rect.h"
12 namespace chromeos {
13 namespace first_run {
15 GreetingStep::GreetingStep(ash::FirstRunHelper* shell_helper,
16 FirstRunActor* actor)
17 : Step(kGreetingStep, shell_helper, actor) {
20 void GreetingStep::Show() {
21 actor()->ShowStepPositioned(name(), FirstRunActor::StepPosition());
24 void GreetingStep::OnBeforeHide() {
25 actor()->SetBackgroundVisible(true);
28 } // namespace first_run
29 } // namespace chromeos