| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/infobars/alternate_nav_infobar_delegate.h" | 5 #include "chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/api/infobars/infobar_service.h" | 8 #include "chrome/browser/api/infobars/infobar_service.h" |
| 9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 11 #include "grit/theme_resources.h" | 11 #include "grit/theme_resources.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
| 14 | 14 |
| 15 // static | 15 // static |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 62 } |
| 63 | 63 |
| 64 gfx::Image* AlternateNavInfoBarDelegate::GetIcon() const { | 64 gfx::Image* AlternateNavInfoBarDelegate::GetIcon() const { |
| 65 return &ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( | 65 return &ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( |
| 66 IDR_INFOBAR_ALT_NAV_URL); | 66 IDR_INFOBAR_ALT_NAV_URL); |
| 67 } | 67 } |
| 68 | 68 |
| 69 InfoBarDelegate::Type AlternateNavInfoBarDelegate::GetInfoBarType() const { | 69 InfoBarDelegate::Type AlternateNavInfoBarDelegate::GetInfoBarType() const { |
| 70 return PAGE_ACTION_TYPE; | 70 return PAGE_ACTION_TYPE; |
| 71 } | 71 } |
| OLD | NEW |