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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual views::View* GetContentsView() { return this; } | 55 virtual views::View* GetContentsView() { return this; } |
56 | 56 |
57 // views::View overrides: | 57 // views::View overrides: |
58 virtual std::wstring GetWindowTitle() const; | 58 virtual std::wstring GetWindowTitle() const; |
59 | 59 |
60 // views::ButtonListener overrides: | 60 // views::ButtonListener overrides: |
61 virtual void ButtonPressed(views::Button* sender, | 61 virtual void ButtonPressed(views::Button* sender, |
62 const views::Event& event); | 62 const views::Event& event); |
63 | 63 |
64 // views::Textfield::Controller overrides: | 64 // views::Textfield::Controller overrides: |
65 virtual bool HandleKeystroke(views::Textfield* sender, | 65 virtual bool HandleKeyEvent(views::Textfield* sender, |
66 const views::Textfield::Keystroke& keystroke) { | 66 const views::KeyEvent& keystroke) { |
67 return false; | 67 return false; |
68 } | 68 } |
69 virtual void ContentsChanged(views::Textfield* sender, | 69 virtual void ContentsChanged(views::Textfield* sender, |
70 const string16& new_contents) {} | 70 const string16& new_contents) {} |
71 | 71 |
72 protected: | 72 protected: |
73 // views::View overrides: | 73 // views::View overrides: |
74 virtual gfx::Size GetPreferredSize(); | 74 virtual gfx::Size GetPreferredSize(); |
75 virtual void ViewHierarchyChanged(bool is_add, | 75 virtual void ViewHierarchyChanged(bool is_add, |
76 views::View* parent, | 76 views::View* parent, |
(...skipping 18 matching lines...) Expand all Loading... |
95 | 95 |
96 // Whether full sync option is disabled. | 96 // Whether full sync option is disabled. |
97 bool full_sync_disabled_; | 97 bool full_sync_disabled_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(PasswordChangedView); | 99 DISALLOW_COPY_AND_ASSIGN(PasswordChangedView); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace chromeos | 102 } // namespace chromeos |
103 | 103 |
104 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PASSWORD_CHANGED_VIEW_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PASSWORD_CHANGED_VIEW_H_ |
OLD | NEW |