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

Side by Side Diff: chrome/browser/views/login_view.h

Issue 115825: Move text_field.cc and rename the class to Textfield in preparation for porti... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « chrome/browser/views/keyword_editor_view.cc ('k') | chrome/browser/views/login_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_LOGIN_VIEW_H__ 5 #ifndef CHROME_BROWSER_VIEWS_LOGIN_VIEW_H__
6 #define CHROME_BROWSER_VIEWS_LOGIN_VIEW_H__ 6 #define CHROME_BROWSER_VIEWS_LOGIN_VIEW_H__
7 7
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "views/view.h" 9 #include "views/view.h"
10 10
11 namespace views { 11 namespace views {
12 class Label; 12 class Label;
13 class TextField; 13 class Textfield;
14 class LoginModel; 14 class LoginModel;
15 15
16 // Simple Model & Observer interfaces for a LoginView to facilitate exchanging 16 // Simple Model & Observer interfaces for a LoginView to facilitate exchanging
17 // information. 17 // information.
18 class LoginModelObserver { 18 class LoginModelObserver {
19 public: 19 public:
20 // Called by the model when a username,password pair has been identified 20 // Called by the model when a username,password pair has been identified
21 // as a match for the pending login prompt. 21 // as a match for the pending login prompt.
22 virtual void OnAutofillDataAvailable(const std::wstring& username, 22 virtual void OnAutofillDataAvailable(const std::wstring& username,
23 const std::wstring& password) = 0; 23 const std::wstring& password) = 0;
(...skipping 29 matching lines...) Expand all
53 void SetModel(LoginModel* model); 53 void SetModel(LoginModel* model);
54 54
55 protected: 55 protected:
56 // views::View overrides: 56 // views::View overrides:
57 virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child); 57 virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child);
58 58
59 private: 59 private:
60 void FocusFirstField(); 60 void FocusFirstField();
61 61
62 // Non-owning refs to the input text fields. 62 // Non-owning refs to the input text fields.
63 TextField* username_field_; 63 Textfield* username_field_;
64 TextField* password_field_; 64 Textfield* password_field_;
65 65
66 // Button labels 66 // Button labels
67 Label* username_label_; 67 Label* username_label_;
68 Label* password_label_; 68 Label* password_label_;
69 69
70 // Authentication message. 70 // Authentication message.
71 Label* message_label_; 71 Label* message_label_;
72 72
73 // If not null, points to a model we need to notify of our own destruction 73 // If not null, points to a model we need to notify of our own destruction
74 // so it doesn't try and access this when its too late. 74 // so it doesn't try and access this when its too late.
75 LoginModel* login_model_; 75 LoginModel* login_model_;
76 76
77 ScopedRunnableMethodFactory<LoginView> focus_grabber_factory_; 77 ScopedRunnableMethodFactory<LoginView> focus_grabber_factory_;
78 78
79 DISALLOW_EVIL_CONSTRUCTORS(LoginView); 79 DISALLOW_EVIL_CONSTRUCTORS(LoginView);
80 }; 80 };
81 81
82 } // namespace 82 } // namespace
83 #endif // CHROME_BROWSER_VIEWS_LOGIN_VIEW_H__ 83 #endif // CHROME_BROWSER_VIEWS_LOGIN_VIEW_H__
OLDNEW
« no previous file with comments | « chrome/browser/views/keyword_editor_view.cc ('k') | chrome/browser/views/login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698