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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_popup_base_view.cc

Issue 2152243002: [Autofill] Tweak credit card signin promo visually. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h" 5 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/ui/autofill/popup_constants.h" 12 #include "chrome/browser/ui/autofill/popup_constants.h"
13 #include "ui/views/border.h" 13 #include "ui/views/border.h"
14 #include "ui/views/focus/focus_manager.h" 14 #include "ui/views/focus/focus_manager.h"
15 #include "ui/views/widget/widget.h" 15 #include "ui/views/widget/widget.h"
16 16
17 namespace autofill { 17 namespace autofill {
18 18
19 const SkColor AutofillPopupBaseView::kBorderColor = 19 const SkColor AutofillPopupBaseView::kBorderColor =
20 SkColorSetRGB(0xC7, 0xCA, 0xCE); 20 SkColorSetRGB(0xC7, 0xCA, 0xCE);
21 const SkColor AutofillPopupBaseView::kHoveredBackgroundColor = 21 const SkColor AutofillPopupBaseView::kHoveredBackgroundColor =
22 SkColorSetRGB(0xCD, 0xCD, 0xCD); 22 SkColorSetRGB(0xCD, 0xCD, 0xCD);
23 const SkColor AutofillPopupBaseView::kItemTextColor = 23 const SkColor AutofillPopupBaseView::kItemTextColor =
Evan Stade 2016/07/15 17:27:08 s/Item/Label (?)
Mathieu 2016/07/15 19:30:20 Done.
24 SkColorSetRGB(0x64, 0x64, 0x64); 24 SkColorSetRGB(0x64, 0x64, 0x64);
25 const SkColor AutofillPopupBaseView::kPopupBackground = SK_ColorWHITE; 25 const SkColor AutofillPopupBaseView::kPopupBackground = SK_ColorWHITE;
26 const SkColor AutofillPopupBaseView::kPromoPopupBackground =
27 SkColorSetRGB(0xFA, 0xFA, 0xFA);
26 const SkColor AutofillPopupBaseView::kValueTextColor = SK_ColorBLACK; 28 const SkColor AutofillPopupBaseView::kValueTextColor = SK_ColorBLACK;
27 const SkColor AutofillPopupBaseView::kWarningTextColor = 29 const SkColor AutofillPopupBaseView::kWarningTextColor =
28 SkColorSetRGB(0x64, 0x64, 0x64); 30 SkColorSetRGB(0x64, 0x64, 0x64);
29 31
30 AutofillPopupBaseView::AutofillPopupBaseView( 32 AutofillPopupBaseView::AutofillPopupBaseView(
31 AutofillPopupViewDelegate* delegate, 33 AutofillPopupViewDelegate* delegate,
32 views::Widget* parent_widget) 34 views::Widget* parent_widget)
33 : delegate_(delegate), 35 : delegate_(delegate),
34 parent_widget_(parent_widget), 36 parent_widget_(parent_widget),
35 weak_ptr_factory_(this) {} 37 weak_ptr_factory_(this) {}
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 void AutofillPopupBaseView::HideController() { 245 void AutofillPopupBaseView::HideController() {
244 if (delegate_) 246 if (delegate_)
245 delegate_->Hide(); 247 delegate_->Hide();
246 } 248 }
247 249
248 gfx::NativeView AutofillPopupBaseView::container_view() { 250 gfx::NativeView AutofillPopupBaseView::container_view() {
249 return delegate_->container_view(); 251 return delegate_->container_view();
250 } 252 }
251 253
252 } // namespace autofill 254 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698