OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/autofill/autofill_cc_infobar.h" | 5 #include "chrome/browser/autofill/autofill_cc_infobar.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "chrome/browser/ui/views/event_utils.h" | 8 #include "chrome/browser/ui/views/event_utils.h" |
9 #include "chrome/browser/ui/views/infobars/infobars.h" | 9 #include "chrome/browser/ui/views/infobars/infobars.h" |
10 #include "chrome/browser/ui/views/infobars/infobar_text_button.h" | 10 #include "chrome/browser/ui/views/infobars/infobar_text_button.h" |
11 #include "chrome/common/pref_names.h" | |
12 #include "grit/chromium_strings.h" | 11 #include "grit/chromium_strings.h" |
13 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
14 #include "grit/theme_resources.h" | 13 #include "grit/theme_resources.h" |
15 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
16 #include "views/controls/button/text_button.h" | 15 #include "views/controls/button/text_button.h" |
17 #include "views/controls/link.h" | 16 #include "views/controls/link.h" |
18 | 17 |
19 class SaveCCInfoConfirmInfoBar : public AlertInfoBar, | 18 class SaveCCInfoConfirmInfoBar : public AlertInfoBar, |
20 public views::LinkController { | 19 public views::LinkController { |
21 public: | 20 public: |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 } | 162 } |
164 | 163 |
165 ConfirmInfoBarDelegate* SaveCCInfoConfirmInfoBar::GetDelegate() { | 164 ConfirmInfoBarDelegate* SaveCCInfoConfirmInfoBar::GetDelegate() { |
166 return delegate()->AsConfirmInfoBarDelegate(); | 165 return delegate()->AsConfirmInfoBarDelegate(); |
167 } | 166 } |
168 | 167 |
169 InfoBar* CreateAutofillCcInfoBar(ConfirmInfoBarDelegate* delegate) { | 168 InfoBar* CreateAutofillCcInfoBar(ConfirmInfoBarDelegate* delegate) { |
170 DCHECK(delegate); | 169 DCHECK(delegate); |
171 return new SaveCCInfoConfirmInfoBar(delegate); | 170 return new SaveCCInfoConfirmInfoBar(delegate); |
172 } | 171 } |
OLD | NEW |