Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: chrome/browser/chromeos/login/screen_lock_view.h

Issue 6312160: Map Views to Profiles directly from their window, eliminating the need... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 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"
11 #include "chrome/common/notification_observer.h" 11 #include "chrome/common/notification_observer.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // views::Textfield::Controller implementation: 60 // views::Textfield::Controller implementation:
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 implementation: 66 // UserView::Delegate implementation:
67 virtual void OnSignout(); 67 virtual void OnSignout();
68 virtual bool IsUserSelected() const { return true; } 68 virtual bool IsUserSelected() const { return true; }
69 69
70 protected:
71 // views::View implementation:
72 virtual void ViewHierarchyChanged(bool is_add,
73 views::View* parent,
74 views::View* child);
75
76 private: 70 private:
77 friend class test::ScreenLockerTester; 71 friend class test::ScreenLockerTester;
78 72
79 UserView* user_view_; 73 UserView* user_view_;
80 74
81 // For editing the password. 75 // For editing the password.
82 views::Textfield* password_field_; 76 views::Textfield* password_field_;
83 77
84 // ScreenLocker is owned by itself. 78 // ScreenLocker is owned by itself.
85 ScreenLocker* screen_locker_; 79 ScreenLocker* screen_locker_;
86 80
87 NotificationRegistrar registrar_; 81 NotificationRegistrar registrar_;
88 82
89 // User's picture, signout button and password field. 83 // User's picture, signout button and password field.
90 views::View* main_; 84 views::View* main_;
91 85
92 // Username that overlays on top of user's picture. 86 // Username that overlays on top of user's picture.
93 views::View* username_; 87 views::View* username_;
94 88
95 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); 89 DISALLOW_COPY_AND_ASSIGN(ScreenLockView);
96 }; 90 };
97 91
98 } // namespace chromeos 92 } // namespace chromeos
99 93
100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/password_changed_view.cc ('k') | chrome/browser/chromeos/login/screen_lock_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698