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_NEW_USER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); | 103 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
104 | 104 |
105 protected: | 105 protected: |
106 // views::View overrides: | 106 // views::View overrides: |
107 virtual void ViewHierarchyChanged(bool is_add, views::View *parent, | 107 virtual void ViewHierarchyChanged(bool is_add, views::View *parent, |
108 views::View *child); | 108 views::View *child); |
109 virtual void NativeViewHierarchyChanged(bool attached, | 109 virtual void NativeViewHierarchyChanged(bool attached, |
110 gfx::NativeView native_view, | 110 gfx::NativeView native_view, |
111 views::RootView* root_view); | 111 views::RootView* root_view); |
112 virtual void LocaleChanged(); | 112 virtual void OnLocaleChanged(); |
113 | 113 |
114 private: | 114 private: |
115 // Enables/disables input controls (textfields, buttons). | 115 // Enables/disables input controls (textfields, buttons). |
116 void EnableInputControls(bool enabled); | 116 void EnableInputControls(bool enabled); |
117 void FocusFirstField(); | 117 void FocusFirstField(); |
118 | 118 |
119 // Creates Link control and adds it as a child. | 119 // Creates Link control and adds it as a child. |
120 void InitLink(views::Link** link); | 120 void InitLink(views::Link** link); |
121 | 121 |
122 // Delete and recreate native controls that fail to update preferred size | 122 // Delete and recreate native controls that fail to update preferred size |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 FRIEND_TEST_ALL_PREFIXES(LoginScreenTest, IncognitoLogin); | 159 FRIEND_TEST_ALL_PREFIXES(LoginScreenTest, IncognitoLogin); |
160 friend class LoginScreenTest; | 160 friend class LoginScreenTest; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(NewUserView); | 162 DISALLOW_COPY_AND_ASSIGN(NewUserView); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace chromeos | 165 } // namespace chromeos |
166 | 166 |
167 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_ | 167 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_ |
OLD | NEW |