OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EULA_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EULA_VIEW_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "chrome/browser/chromeos/login/view_screen.h" |
| 11 #include "views/controls/button/button.h" |
| 12 #include "views/controls/link.h" |
| 13 #include "views/view.h" |
| 14 |
| 15 namespace views { |
| 16 |
| 17 class Checkbox; |
| 18 class Label; |
| 19 class Link; |
| 20 class NativeButton; |
| 21 class Textfield; |
| 22 |
| 23 } // namespace views |
| 24 |
| 25 namespace chromeos { |
| 26 |
| 27 class EulaView |
| 28 : public views::View, |
| 29 public views::ButtonListener, |
| 30 public views::LinkController { |
| 31 public: |
| 32 explicit EulaView(chromeos::ScreenObserver* observer); |
| 33 virtual ~EulaView(); |
| 34 |
| 35 // Initialize view controls and layout. |
| 36 void Init(); |
| 37 |
| 38 // Update strings from the resources. Executed on language change. |
| 39 void UpdateLocalizedStrings(); |
| 40 |
| 41 protected: |
| 42 // views::View implementation. |
| 43 virtual void LocaleChanged(); |
| 44 |
| 45 // views::ButtonListener implementation. |
| 46 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
| 47 |
| 48 // views::LinkController implementation. |
| 49 void LinkActivated(views::Link* source, int event_flags); |
| 50 |
| 51 private: |
| 52 // Dialog controls. |
| 53 views::Textfield* google_eula_text_; |
| 54 views::Checkbox* usage_statistics_checkbox_; |
| 55 views::Link* learn_more_link_; |
| 56 views::Textfield* oem_eula_text_; |
| 57 views::Link* system_security_settings_link_; |
| 58 views::NativeButton* cancel_button_; |
| 59 views::NativeButton* continue_button_; |
| 60 |
| 61 chromeos::ScreenObserver* observer_; |
| 62 |
| 63 DISALLOW_COPY_AND_ASSIGN(EulaView); |
| 64 }; |
| 65 |
| 66 class EulaScreen : public DefaultViewScreen<EulaView> { |
| 67 public: |
| 68 explicit EulaScreen(WizardScreenDelegate* delegate) |
| 69 : DefaultViewScreen<EulaView>(delegate) { |
| 70 } |
| 71 private: |
| 72 DISALLOW_COPY_AND_ASSIGN(EulaScreen); |
| 73 }; |
| 74 |
| 75 } // namespace chromeos |
| 76 |
| 77 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EULA_VIEW_H_ |
OLD | NEW |