| 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/dom_ui/app_launcher_handler.h" | 5 #include "chrome/browser/dom_ui/app_launcher_handler.h" |
| 6 | 6 |
| 7 #include "app/animation.h" | 7 #include "app/animation.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "base/string_split.h" | 10 #include "base/string_split.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/app_launched_animation.h" | 14 #include "chrome/browser/app_launched_animation.h" |
| 15 #include "chrome/browser/browser.h" | |
| 16 #include "chrome/browser/browser_list.h" | |
| 17 #include "chrome/browser/extensions/default_apps.h" | 15 #include "chrome/browser/extensions/default_apps.h" |
| 18 #include "chrome/browser/extensions/extension_prefs.h" | 16 #include "chrome/browser/extensions/extension_prefs.h" |
| 19 #include "chrome/browser/extensions/extensions_service.h" | 17 #include "chrome/browser/extensions/extensions_service.h" |
| 20 #include "chrome/browser/platform_util.h" | 18 #include "chrome/browser/platform_util.h" |
| 21 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profile.h" |
| 22 #include "chrome/browser/tab_contents/tab_contents.h" | 20 #include "chrome/browser/tab_contents/tab_contents.h" |
| 21 #include "chrome/browser/ui/browser.h" |
| 22 #include "chrome/browser/ui/browser_list.h" |
| 23 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
| 24 #include "chrome/common/extensions/extension.h" | 24 #include "chrome/common/extensions/extension.h" |
| 25 #include "chrome/common/extensions/extension_constants.h" | 25 #include "chrome/common/extensions/extension_constants.h" |
| 26 #include "chrome/common/extensions/extension_icon_set.h" | 26 #include "chrome/common/extensions/extension_icon_set.h" |
| 27 #include "chrome/common/extensions/extension_resource.h" | 27 #include "chrome/common/extensions/extension_resource.h" |
| 28 #include "chrome/common/notification_service.h" | 28 #include "chrome/common/notification_service.h" |
| 29 #include "chrome/common/notification_type.h" | 29 #include "chrome/common/notification_type.h" |
| 30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
| 31 #include "gfx/rect.h" | 31 #include "gfx/rect.h" |
| 32 #include "grit/browser_resources.h" | 32 #include "grit/browser_resources.h" |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // We make this check for the case of minimized windows, unit tests, etc. | 361 // We make this check for the case of minimized windows, unit tests, etc. |
| 362 if (platform_util::IsVisible(dom_ui_->tab_contents()->GetNativeView()) && | 362 if (platform_util::IsVisible(dom_ui_->tab_contents()->GetNativeView()) && |
| 363 Animation::ShouldRenderRichAnimation()) { | 363 Animation::ShouldRenderRichAnimation()) { |
| 364 #if defined(OS_WIN) | 364 #if defined(OS_WIN) |
| 365 AppLaunchedAnimation::Show(extension, rect); | 365 AppLaunchedAnimation::Show(extension, rect); |
| 366 #else | 366 #else |
| 367 NOTIMPLEMENTED(); | 367 NOTIMPLEMENTED(); |
| 368 #endif | 368 #endif |
| 369 } | 369 } |
| 370 } | 370 } |
| OLD | NEW |