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

Side by Side Diff: chrome/browser/ui/views/passwords/manage_password_item_view.h

Issue 221853003: Password bubble: Add a test for displayed password length. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rewrite. Created 6 years, 8 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 | « no previous file | chrome/browser/ui/views/passwords/manage_password_item_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEM_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEM_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEM_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEM_VIEW_H_
7 7
8 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" 8 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h"
9 #include "components/autofill/core/common/password_form.h" 9 #include "components/autofill/core/common/password_form.h"
10 10
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 enum Position { FIRST_ITEM, SUBSEQUENT_ITEM }; 22 enum Position { FIRST_ITEM, SUBSEQUENT_ITEM };
23 23
24 ManagePasswordItemView( 24 ManagePasswordItemView(
25 ManagePasswordsBubbleModel* manage_passwords_bubble_model, 25 ManagePasswordsBubbleModel* manage_passwords_bubble_model,
26 autofill::PasswordForm password_form, 26 autofill::PasswordForm password_form,
27 int field_1_width, 27 int field_1_width,
28 int field_2_width, 28 int field_2_width,
29 Position position); 29 Position position);
30 30
31 static base::string16 GetPasswordDisplayString(
32 const base::string16& password);
33
34 private: 31 private:
35 enum ColumnSets { COLUMN_SET_SAVE = 0, COLUMN_SET_MANAGE = 1, }; 32 enum ColumnSets { COLUMN_SET_SAVE = 0, COLUMN_SET_MANAGE = 1, };
36 33
37 virtual ~ManagePasswordItemView(); 34 virtual ~ManagePasswordItemView();
38 35
39 // Build a two-label column set using the widths stored in |field_1_width_| 36 // Build a two-label column set using the widths stored in |field_1_width_|
40 // and |field_2_width_|. 37 // and |field_2_width_|.
41 void BuildColumnSet(views::GridLayout*, int column_set_id); 38 void BuildColumnSet(views::GridLayout*, int column_set_id);
42 39
43 // Changes the views according to the state of |delete_password_|. 40 // Changes the views according to the state of |delete_password_|.
(...skipping 20 matching lines...) Expand all
64 ManagePasswordsBubbleModel* manage_passwords_bubble_model_; 61 ManagePasswordsBubbleModel* manage_passwords_bubble_model_;
65 autofill::PasswordForm password_form_; 62 autofill::PasswordForm password_form_;
66 bool delete_password_; 63 bool delete_password_;
67 int field_1_width_; 64 int field_1_width_;
68 int field_2_width_; 65 int field_2_width_;
69 66
70 DISALLOW_COPY_AND_ASSIGN(ManagePasswordItemView); 67 DISALLOW_COPY_AND_ASSIGN(ManagePasswordItemView);
71 }; 68 };
72 69
73 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEM_VIEW_H_ 70 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORD_ITEM_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/passwords/manage_password_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698