| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/extensions/extension_installed_bubble.h" | 5 #include "chrome/browser/views/extensions/extension_installed_bubble.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
| 11 #include "chrome/browser/browser_window.h" | 11 #include "chrome/browser/browser_window.h" |
| 12 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
| 13 #include "chrome/browser/shell_integration.h" | 13 #include "chrome/browser/shell_integration.h" |
| 14 #include "chrome/browser/views/browser_actions_container.h" | 14 #include "chrome/browser/views/browser_actions_container.h" |
| 15 #include "chrome/browser/views/frame/browser_view.h" | 15 #include "chrome/browser/views/frame/browser_view.h" |
| 16 #include "chrome/browser/views/location_bar/location_bar_view.h" | 16 #include "chrome/browser/views/location_bar/location_bar_view.h" |
| 17 #include "chrome/browser/views/tabs/base_tab.h" | 17 #include "chrome/browser/views/tabs/base_tab.h" |
| 18 #include "chrome/browser/views/tabs/base_tab_strip.h" | 18 #include "chrome/browser/views/tabs/base_tab_strip.h" |
| 19 #include "chrome/browser/views/toolbar_view.h" | 19 #include "chrome/browser/views/toolbar_view.h" |
| 20 #include "chrome/browser/web_applications/web_app.h" | 20 #include "chrome/browser/web_applications/web_app.h" |
| 21 #include "chrome/common/extensions/extension.h" | 21 #include "chrome/common/extensions/extension.h" |
| 22 #include "chrome/common/extensions/extension_action.h" | 22 #include "chrome/common/extensions/extension_action.h" |
| 23 #include "chrome/common/notification_service.h" | 23 #include "chrome/common/notification_service.h" |
| 24 #include "chrome/common/notification_type.h" | 24 #include "chrome/common/notification_type.h" |
| 25 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
| 26 #include "grit/theme_resources.h" | 26 #include "grit/theme_resources.h" |
| 27 #include "views/controls/button/checkbox.h" | 27 #include "views/controls/button/checkbox.h" |
| 28 #include "views/controls/button/image_button.h" | 28 #include "views/controls/button/image_button.h" |
| 29 #include "views/controls/image_view.h" |
| 29 #include "views/controls/label.h" | 30 #include "views/controls/label.h" |
| 30 #include "views/standard_layout.h" | 31 #include "views/standard_layout.h" |
| 31 #include "views/view.h" | 32 #include "views/view.h" |
| 32 | 33 |
| 33 namespace { | 34 namespace { |
| 34 | 35 |
| 35 const int kIconSize = 43; | 36 const int kIconSize = 43; |
| 36 | 37 |
| 37 const int kRightColumnWidth = 285; | 38 const int kRightColumnWidth = 285; |
| 38 | 39 |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 shortcut_info.create_on_desktop = true; | 370 shortcut_info.create_on_desktop = true; |
| 370 shortcut_info.create_in_applications_menu = false; | 371 shortcut_info.create_in_applications_menu = false; |
| 371 shortcut_info.create_in_quick_launch_bar = false; | 372 shortcut_info.create_in_quick_launch_bar = false; |
| 372 web_app::CreateShortcut(browser_->profile()->GetPath(), shortcut_info, | 373 web_app::CreateShortcut(browser_->profile()->GetPath(), shortcut_info, |
| 373 NULL); | 374 NULL); |
| 374 } | 375 } |
| 375 } | 376 } |
| 376 | 377 |
| 377 Release(); // Balanced in ctor. | 378 Release(); // Balanced in ctor. |
| 378 } | 379 } |
| OLD | NEW |