| 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_VIEW_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_VIEW_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_VIEW_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_VIEW_SCREEN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "chrome/browser/chromeos/login/helper.h" | 10 #include "chrome/browser/chromeos/login/helper.h" |
| 11 #include "chrome/browser/chromeos/login/wizard_screen.h" | 11 #include "chrome/browser/chromeos/login/wizard_screen.h" |
| 12 #include "gfx/size.h" | 12 #include "ui/gfx/size.h" |
| 13 | 13 |
| 14 template <class V> | 14 template <class V> |
| 15 class ViewScreen : public WizardScreen { | 15 class ViewScreen : public WizardScreen { |
| 16 public: | 16 public: |
| 17 // Create screen with default size. | 17 // Create screen with default size. |
| 18 explicit ViewScreen(WizardScreenDelegate* delegate); | 18 explicit ViewScreen(WizardScreenDelegate* delegate); |
| 19 | 19 |
| 20 // Create screen with the specified size. | 20 // Create screen with the specified size. |
| 21 ViewScreen(WizardScreenDelegate* delegate, int width, int height); | 21 ViewScreen(WizardScreenDelegate* delegate, int width, int height); |
| 22 virtual ~ViewScreen(); | 22 virtual ~ViewScreen(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // ViewScreen, protected: | 117 // ViewScreen, protected: |
| 118 template <class V> | 118 template <class V> |
| 119 void ViewScreen<V>::CreateView() { | 119 void ViewScreen<V>::CreateView() { |
| 120 view_ = AllocateView(); | 120 view_ = AllocateView(); |
| 121 delegate()->GetWizardView()->AddChildView(view_); | 121 delegate()->GetWizardView()->AddChildView(view_); |
| 122 view_->Init(); | 122 view_->Init(); |
| 123 view_->SetVisible(false); | 123 view_->SetVisible(false); |
| 124 } | 124 } |
| 125 | 125 |
| 126 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VIEW_SCREEN_H_ | 126 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VIEW_SCREEN_H_ |
| OLD | NEW |