| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/chromeos/boot_times_loader.h" | 9 #include "chrome/browser/chromeos/boot_times_loader.h" |
| 10 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 class OobeProgressBar; | 24 class OobeProgressBar; |
| 25 class StatusAreaView; | 25 class StatusAreaView; |
| 26 | 26 |
| 27 // View used to render the background during login. BackgroundView contains | 27 // View used to render the background during login. BackgroundView contains |
| 28 // StatusAreaView. | 28 // StatusAreaView. |
| 29 class BackgroundView : public views::View, public StatusAreaHost { | 29 class BackgroundView : public views::View, public StatusAreaHost { |
| 30 public: | 30 public: |
| 31 enum LoginStep { | 31 enum LoginStep { |
| 32 SELECT_NETWORK, | 32 SELECT_NETWORK, |
| 33 #if defined(OFFICIAL_BUILD) |
| 33 EULA, | 34 EULA, |
| 35 #endif |
| 34 SIGNIN, | 36 SIGNIN, |
| 37 #if defined(OFFICIAL_BUILD) |
| 35 REGISTRATION, | 38 REGISTRATION, |
| 39 #endif |
| 36 PICTURE | 40 PICTURE |
| 37 }; | 41 }; |
| 38 | 42 |
| 39 BackgroundView(); | 43 BackgroundView(); |
| 40 | 44 |
| 41 // Creates a window containing an instance of WizardContentsView as the root | 45 // Creates a window containing an instance of WizardContentsView as the root |
| 42 // view. The caller is responsible for showing (and closing) the returned | 46 // view. The caller is responsible for showing (and closing) the returned |
| 43 // widget. The BackgroundView is set in |view|. | 47 // widget. The BackgroundView is set in |view|. |
| 44 static views::Widget* CreateWindowContainingView(const gfx::Rect& bounds, | 48 static views::Widget* CreateWindowContainingView(const gfx::Rect& bounds, |
| 45 BackgroundView** view); | 49 BackgroundView** view); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // manager. | 111 // manager. |
| 108 // TODO(sky): nuke this when the wm knows when chrome has painted. | 112 // TODO(sky): nuke this when the wm knows when chrome has painted. |
| 109 bool did_paint_; | 113 bool did_paint_; |
| 110 | 114 |
| 111 DISALLOW_COPY_AND_ASSIGN(BackgroundView); | 115 DISALLOW_COPY_AND_ASSIGN(BackgroundView); |
| 112 }; | 116 }; |
| 113 | 117 |
| 114 } // namespace chromeos | 118 } // namespace chromeos |
| 115 | 119 |
| 116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ | 120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ |
| OLD | NEW |