OLD | NEW |
1 // Copyright (c) 2010 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" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
(...skipping 19 matching lines...) Expand all Loading... |
31 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
32 #include "grit/chromium_strings.h" | 32 #include "grit/chromium_strings.h" |
33 #include "grit/generated_resources.h" | 33 #include "grit/generated_resources.h" |
34 #include "grit/theme_resources.h" | 34 #include "grit/theme_resources.h" |
35 | 35 |
36 #if defined(OS_MACOSX) | 36 #if defined(OS_MACOSX) |
37 #include "chrome/browser/ui/cocoa/extension_installed_bubble_bridge.h" | 37 #include "chrome/browser/ui/cocoa/extension_installed_bubble_bridge.h" |
38 #endif | 38 #endif |
39 | 39 |
40 #if defined(TOOLKIT_VIEWS) | 40 #if defined(TOOLKIT_VIEWS) |
41 #include "chrome/browser/views/extensions/extension_installed_bubble.h" | 41 #include "chrome/browser/ui/views/extensions/extension_installed_bubble.h" |
42 #endif | 42 #endif |
43 | 43 |
44 #if defined(TOOLKIT_GTK) | 44 #if defined(TOOLKIT_GTK) |
45 #include "chrome/browser/extensions/gtk_theme_installed_infobar_delegate.h" | 45 #include "chrome/browser/extensions/gtk_theme_installed_infobar_delegate.h" |
46 #include "chrome/browser/gtk/extension_installed_bubble_gtk.h" | 46 #include "chrome/browser/gtk/extension_installed_bubble_gtk.h" |
47 #include "chrome/browser/gtk/gtk_theme_provider.h" | 47 #include "chrome/browser/gtk/gtk_theme_provider.h" |
48 #endif | 48 #endif |
49 | 49 |
50 // static | 50 // static |
51 const int ExtensionInstallUI::kTitleIds[NUM_PROMPT_TYPES] = { | 51 const int ExtensionInstallUI::kTitleIds[NUM_PROMPT_TYPES] = { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 TabContents* tab_contents, const Extension* new_theme, | 314 TabContents* tab_contents, const Extension* new_theme, |
315 const std::string& previous_theme_id, bool previous_use_system_theme) { | 315 const std::string& previous_theme_id, bool previous_use_system_theme) { |
316 #if defined(TOOLKIT_GTK) | 316 #if defined(TOOLKIT_GTK) |
317 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 317 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
318 previous_theme_id, previous_use_system_theme); | 318 previous_theme_id, previous_use_system_theme); |
319 #else | 319 #else |
320 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 320 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
321 previous_theme_id); | 321 previous_theme_id); |
322 #endif | 322 #endif |
323 } | 323 } |
OLD | NEW |