OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PASSWORD_CHANGED_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PASSWORD_CHANGED_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PASSWORD_CHANGED_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PASSWORD_CHANGED_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual string16 GetWindowTitle() const OVERRIDE; | 60 virtual string16 GetWindowTitle() const OVERRIDE; |
61 | 61 |
62 // views::ButtonListener: | 62 // views::ButtonListener: |
63 virtual void ButtonPressed(views::Button* sender, | 63 virtual void ButtonPressed(views::Button* sender, |
64 const views::Event& event) OVERRIDE; | 64 const views::Event& event) OVERRIDE; |
65 | 65 |
66 // views::TextfieldController: | 66 // views::TextfieldController: |
67 virtual void ContentsChanged(views::Textfield* sender, | 67 virtual void ContentsChanged(views::Textfield* sender, |
68 const string16& new_contents) OVERRIDE; | 68 const string16& new_contents) OVERRIDE; |
69 virtual bool HandleKeyEvent(views::Textfield* sender, | 69 virtual bool HandleKeyEvent(views::Textfield* sender, |
70 const views::KeyEvent& keystroke) OVERRIDE; | 70 const ui::KeyEvent& keystroke) OVERRIDE; |
71 protected: | 71 protected: |
72 // views::View: | 72 // views::View: |
73 virtual gfx::Size GetPreferredSize() OVERRIDE; | 73 virtual gfx::Size GetPreferredSize() OVERRIDE; |
74 virtual void ViewHierarchyChanged(bool is_add, | 74 virtual void ViewHierarchyChanged(bool is_add, |
75 views::View* parent, | 75 views::View* parent, |
76 views::View* child) OVERRIDE; | 76 views::View* child) OVERRIDE; |
77 | 77 |
78 private: | 78 private: |
79 // Called when dialog is accepted. | 79 // Called when dialog is accepted. |
80 bool ExitDialog(); | 80 bool ExitDialog(); |
(...skipping 18 matching lines...) Expand all Loading... |
99 // Whether should show "Incorrect password" error message | 99 // Whether should show "Incorrect password" error message |
100 // i.e. dialog is opened second time after incorrect old password input try. | 100 // i.e. dialog is opened second time after incorrect old password input try. |
101 const bool show_invalid_old_password_error_; | 101 const bool show_invalid_old_password_error_; |
102 | 102 |
103 DISALLOW_COPY_AND_ASSIGN(PasswordChangedView); | 103 DISALLOW_COPY_AND_ASSIGN(PasswordChangedView); |
104 }; | 104 }; |
105 | 105 |
106 } // namespace chromeos | 106 } // namespace chromeos |
107 | 107 |
108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PASSWORD_CHANGED_VIEW_H_ | 108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PASSWORD_CHANGED_VIEW_H_ |
OLD | NEW |