| 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/extensions/extension_install_ui.h" | 5 #include "chrome/browser/extensions/extension_install_ui.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #if defined(OS_MACOSX) | 35 #if defined(OS_MACOSX) |
| 36 #include "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.h
" | 36 #include "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.h
" |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 #if defined(TOOLKIT_VIEWS) | 39 #if defined(TOOLKIT_VIEWS) |
| 40 #include "chrome/browser/ui/views/extensions/extension_installed_bubble.h" | 40 #include "chrome/browser/ui/views/extensions/extension_installed_bubble.h" |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 #if defined(TOOLKIT_GTK) | 43 #if defined(TOOLKIT_GTK) |
| 44 #include "chrome/browser/extensions/gtk_theme_installed_infobar_delegate.h" | 44 #include "chrome/browser/extensions/gtk_theme_installed_infobar_delegate.h" |
| 45 #include "chrome/browser/gtk/extension_installed_bubble_gtk.h" | 45 #include "chrome/browser/ui/gtk/extension_installed_bubble_gtk.h" |
| 46 #include "chrome/browser/gtk/gtk_theme_provider.h" | 46 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 // static | 49 // static |
| 50 const int ExtensionInstallUI::kTitleIds[NUM_PROMPT_TYPES] = { | 50 const int ExtensionInstallUI::kTitleIds[NUM_PROMPT_TYPES] = { |
| 51 IDS_EXTENSION_INSTALL_PROMPT_TITLE, | 51 IDS_EXTENSION_INSTALL_PROMPT_TITLE, |
| 52 IDS_EXTENSION_UNINSTALL_PROMPT_TITLE | 52 IDS_EXTENSION_UNINSTALL_PROMPT_TITLE |
| 53 }; | 53 }; |
| 54 // static | 54 // static |
| 55 const int ExtensionInstallUI::kHeadingIds[NUM_PROMPT_TYPES] = { | 55 const int ExtensionInstallUI::kHeadingIds[NUM_PROMPT_TYPES] = { |
| 56 IDS_EXTENSION_INSTALL_PROMPT_HEADING, | 56 IDS_EXTENSION_INSTALL_PROMPT_HEADING, |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 TabContents* tab_contents, const Extension* new_theme, | 313 TabContents* tab_contents, const Extension* new_theme, |
| 314 const std::string& previous_theme_id, bool previous_use_system_theme) { | 314 const std::string& previous_theme_id, bool previous_use_system_theme) { |
| 315 #if defined(TOOLKIT_GTK) | 315 #if defined(TOOLKIT_GTK) |
| 316 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 316 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
| 317 previous_theme_id, previous_use_system_theme); | 317 previous_theme_id, previous_use_system_theme); |
| 318 #else | 318 #else |
| 319 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 319 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
| 320 previous_theme_id); | 320 previous_theme_id); |
| 321 #endif | 321 #endif |
| 322 } | 322 } |
| OLD | NEW |