| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_ENTERPRISE_ENROLLMENT_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "chrome/browser/chromeos/login/web_page_view.h" | 13 #include "chrome/browser/chromeos/login/web_page_view.h" |
| 14 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h" | 14 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h" |
| 15 #include "chrome/common/net/gaia/google_service_auth_error.h" | 15 #include "chrome/common/net/gaia/google_service_auth_error.h" |
| 16 #include "views/view.h" | 16 #include "views/view.h" |
| 17 | 17 |
| 18 namespace base { |
| 18 class DictionaryValue; | 19 class DictionaryValue; |
| 20 } |
| 19 | 21 |
| 20 namespace views { | 22 namespace views { |
| 21 class GridLayout; | 23 class GridLayout; |
| 22 class Label; | 24 class Label; |
| 23 } | 25 } |
| 24 | 26 |
| 25 namespace chromeos { | 27 namespace chromeos { |
| 26 | 28 |
| 27 class EnterpriseEnrollmentController; | 29 class EnterpriseEnrollmentController; |
| 28 class ScreenObserver; | 30 class ScreenObserver; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 56 const std::string& access_code) OVERRIDE; | 58 const std::string& access_code) OVERRIDE; |
| 57 virtual void OnAuthCancelled() OVERRIDE; | 59 virtual void OnAuthCancelled() OVERRIDE; |
| 58 virtual void OnConfirmationClosed() OVERRIDE; | 60 virtual void OnConfirmationClosed() OVERRIDE; |
| 59 virtual bool GetInitialUser(std::string* user) OVERRIDE; | 61 virtual bool GetInitialUser(std::string* user) OVERRIDE; |
| 60 | 62 |
| 61 // Overriden from views::View: | 63 // Overriden from views::View: |
| 62 virtual void RequestFocus() OVERRIDE; | 64 virtual void RequestFocus() OVERRIDE; |
| 63 | 65 |
| 64 private: | 66 private: |
| 65 // Updates the gaia login box. | 67 // Updates the gaia login box. |
| 66 void UpdateGaiaLogin(const DictionaryValue& args); | 68 void UpdateGaiaLogin(const base::DictionaryValue& args); |
| 67 | 69 |
| 68 // Display the given i18n string as error message. | 70 // Display the given i18n string as error message. |
| 69 void ShowError(int message_id); | 71 void ShowError(int message_id); |
| 70 | 72 |
| 71 // Overriden from views::View: | 73 // Overriden from views::View: |
| 72 virtual void Layout() OVERRIDE; | 74 virtual void Layout() OVERRIDE; |
| 73 | 75 |
| 74 EnterpriseEnrollmentController* controller_; | 76 EnterpriseEnrollmentController* controller_; |
| 75 | 77 |
| 76 // Controls. | 78 // Controls. |
| 77 WebPageDomView* enrollment_page_view_; | 79 WebPageDomView* enrollment_page_view_; |
| 78 | 80 |
| 79 bool editable_user_; | 81 bool editable_user_; |
| 80 | 82 |
| 81 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentView); | 83 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentView); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace chromeos | 86 } // namespace chromeos |
| 85 | 87 |
| 86 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ | 88 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ |
| OLD | NEW |