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

Side by Side Diff: chrome/browser/ui/autofill/autofill_popup_layout_model.h

Issue 2971783002: Skeleton for showing "Show all saved passwords row" for Linux/CrOs/Windows platforms (Closed)
Patch Set: more comments adaressed Created 3 years, 5 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
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // The minimum amount of padding between the Autofill http warning message 38 // The minimum amount of padding between the Autofill http warning message
39 // name and subtext, in pixels. 39 // name and subtext, in pixels.
40 static const int kHttpWarningNamePadding = 8; 40 static const int kHttpWarningNamePadding = 8;
41 41
42 // The amount of padding around icons in pixels. 42 // The amount of padding around icons in pixels.
43 static const int kIconPadding = 5; 43 static const int kIconPadding = 5;
44 44
45 // The amount of horizontal padding around icons in pixels for HTTP warning 45 // The amount of horizontal padding around icons in pixels for HTTP warning
46 // message. 46 // message.
47 static const int kHttpWarningIconPadding = 8; 47 static const int kRightHandSideIconPapping = 8;
48 48
49 // The amount of padding at the end of the popup in pixels. 49 // The amount of padding at the end of the popup in pixels.
50 static const int kEndPadding = 8; 50 static const int kEndPadding = 8;
51 51
52 #if !defined(OS_ANDROID) 52 #if !defined(OS_ANDROID)
53 // Calculates the desired height of the popup based on its contents. 53 // Calculates the desired height of the popup based on its contents.
54 int GetDesiredPopupHeight() const; 54 int GetDesiredPopupHeight() const;
55 55
56 // Calculates the desired width of the popup based on its contents. 56 // Calculates the desired width of the popup based on its contents.
57 int GetDesiredPopupWidth() const; 57 int GetDesiredPopupWidth() const;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 AutofillPopupViewDelegate* delegate_; // Weak reference. 142 AutofillPopupViewDelegate* delegate_; // Weak reference.
143 143
144 const bool is_credit_card_popup_; 144 const bool is_credit_card_popup_;
145 145
146 DISALLOW_COPY_AND_ASSIGN(AutofillPopupLayoutModel); 146 DISALLOW_COPY_AND_ASSIGN(AutofillPopupLayoutModel);
147 }; 147 };
148 148
149 } // namespace autofill 149 } // namespace autofill
150 150
151 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_ 151 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_LAYOUT_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698