| OLD | NEW |
| 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 = | |
| 20 SkColorSetRGB(0xC7, 0xCA, 0xCE); | |
| 21 const SkColor AutofillPopupBaseView::kHoveredBackgroundColor = | |
| 22 SkColorSetRGB(0xCD, 0xCD, 0xCD); | |
| 23 const SkColor AutofillPopupBaseView::kItemTextColor = | |
| 24 SkColorSetRGB(0x64, 0x64, 0x64); | |
| 25 const SkColor AutofillPopupBaseView::kPopupBackground = SK_ColorWHITE; | |
| 26 const SkColor AutofillPopupBaseView::kValueTextColor = SK_ColorBLACK; | |
| 27 const SkColor AutofillPopupBaseView::kWarningTextColor = | |
| 28 SkColorSetRGB(0x64, 0x64, 0x64); | |
| 29 | |
| 30 AutofillPopupBaseView::AutofillPopupBaseView( | 19 AutofillPopupBaseView::AutofillPopupBaseView( |
| 31 AutofillPopupViewDelegate* delegate, | 20 AutofillPopupViewDelegate* delegate, |
| 32 views::Widget* parent_widget) | 21 views::Widget* parent_widget) |
| 33 : delegate_(delegate), | 22 : delegate_(delegate), |
| 34 parent_widget_(parent_widget), | 23 parent_widget_(parent_widget), |
| 35 weak_ptr_factory_(this) {} | 24 weak_ptr_factory_(this) {} |
| 36 | 25 |
| 37 AutofillPopupBaseView::~AutofillPopupBaseView() { | 26 AutofillPopupBaseView::~AutofillPopupBaseView() { |
| 38 if (delegate_) { | 27 if (delegate_) { |
| 39 delegate_->ViewDestroyed(); | 28 delegate_->ViewDestroyed(); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 void AutofillPopupBaseView::HideController() { | 232 void AutofillPopupBaseView::HideController() { |
| 244 if (delegate_) | 233 if (delegate_) |
| 245 delegate_->Hide(); | 234 delegate_->Hide(); |
| 246 } | 235 } |
| 247 | 236 |
| 248 gfx::NativeView AutofillPopupBaseView::container_view() { | 237 gfx::NativeView AutofillPopupBaseView::container_view() { |
| 249 return delegate_->container_view(); | 238 return delegate_->container_view(); |
| 250 } | 239 } |
| 251 | 240 |
| 252 } // namespace autofill | 241 } // namespace autofill |
| OLD | NEW |