| OLD | NEW |
| 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/tray_step.h" | 5 #include "chrome/browser/chromeos/first_run/steps/tray_step.h" |
| 6 | 6 |
| 7 #include "ash/common/shelf/shelf.h" |
| 7 #include "ash/first_run/first_run_helper.h" | 8 #include "ash/first_run/first_run_helper.h" |
| 8 #include "ash/shelf/shelf.h" | |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "chrome/browser/chromeos/first_run/step_names.h" | 10 #include "chrome/browser/chromeos/first_run/step_names.h" |
| 11 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h" | 11 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
| 13 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 namespace first_run { | 16 namespace first_run { |
| 17 | 17 |
| 18 TrayStep::TrayStep(ash::FirstRunHelper* shell_helper, FirstRunActor* actor) | 18 TrayStep::TrayStep(ash::FirstRunHelper* shell_helper, FirstRunActor* actor) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 alignment == ash::SHELF_ALIGNMENT_RIGHT) | 32 alignment == ash::SHELF_ALIGNMENT_RIGHT) |
| 33 position.SetRight(GetOverlaySize().width() - bounds.x()); | 33 position.SetRight(GetOverlaySize().width() - bounds.x()); |
| 34 else | 34 else |
| 35 position.SetLeft(bounds.right()); | 35 position.SetLeft(bounds.right()); |
| 36 actor()->ShowStepPositioned(name(), position); | 36 actor()->ShowStepPositioned(name(), position); |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace first_run | 39 } // namespace first_run |
| 40 } // namespace chromeos | 40 } // namespace chromeos |
| 41 | 41 |
| OLD | NEW |