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_SCREEN_LOCK_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/chromeos/login/helper.h" | 9 #include "chrome/browser/chromeos/login/helper.h" |
10 #include "chrome/browser/chromeos/login/user_view.h" | 10 #include "chrome/browser/chromeos/login/user_view.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // Returns the bounds of the password field in ScreenLocker's coordinate. | 47 // Returns the bounds of the password field in ScreenLocker's coordinate. |
48 gfx::Rect GetPasswordBoundsRelativeTo(const views::View* view); | 48 gfx::Rect GetPasswordBoundsRelativeTo(const views::View* view); |
49 | 49 |
50 // views::View: | 50 // views::View: |
51 virtual void SetEnabled(bool enabled); | 51 virtual void SetEnabled(bool enabled); |
52 virtual void Layout(); | 52 virtual void Layout(); |
53 virtual gfx::Size GetPreferredSize(); | 53 virtual gfx::Size GetPreferredSize(); |
54 | 54 |
55 // NotificationObserver: | 55 // NotificationObserver: |
56 virtual void Observe(NotificationType type, | 56 virtual void Observe(int type, |
57 const NotificationSource& source, | 57 const NotificationSource& source, |
58 const NotificationDetails& details); | 58 const NotificationDetails& details); |
59 | 59 |
60 // views::TextfieldController: | 60 // views::TextfieldController: |
61 virtual void ContentsChanged(views::Textfield* sender, | 61 virtual void ContentsChanged(views::Textfield* sender, |
62 const string16& new_contents); | 62 const string16& new_contents); |
63 virtual bool HandleKeyEvent(views::Textfield* sender, | 63 virtual bool HandleKeyEvent(views::Textfield* sender, |
64 const views::KeyEvent& keystroke); | 64 const views::KeyEvent& keystroke); |
65 | 65 |
66 // UserView::Delegate: | 66 // UserView::Delegate: |
(...skipping 18 matching lines...) Expand all Loading... |
85 | 85 |
86 // Username that overlays on top of user's picture. | 86 // Username that overlays on top of user's picture. |
87 views::View* username_; | 87 views::View* username_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); | 89 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); |
90 }; | 90 }; |
91 | 91 |
92 } // namespace chromeos | 92 } // namespace chromeos |
93 | 93 |
94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ | 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ |
OLD | NEW |