OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/ui/extensions/application_launch.h" | 5 #include "chrome/browser/ui/extensions/application_launch.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "apps/launcher.h" | 9 #include "apps/launcher.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/ui/browser.h" | 23 #include "chrome/browser/ui/browser.h" |
24 #include "chrome/browser/ui/browser_commands.h" | 24 #include "chrome/browser/ui/browser_commands.h" |
25 #include "chrome/browser/ui/browser_finder.h" | 25 #include "chrome/browser/ui/browser_finder.h" |
26 #include "chrome/browser/ui/browser_tabstrip.h" | 26 #include "chrome/browser/ui/browser_tabstrip.h" |
27 #include "chrome/browser/ui/browser_window.h" | 27 #include "chrome/browser/ui/browser_window.h" |
28 #include "chrome/browser/ui/extensions/extension_enable_flow.h" | 28 #include "chrome/browser/ui/extensions/extension_enable_flow.h" |
29 #include "chrome/browser/ui/extensions/extension_enable_flow_delegate.h" | 29 #include "chrome/browser/ui/extensions/extension_enable_flow_delegate.h" |
30 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 30 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
31 #include "chrome/browser/web_applications/web_app.h" | 31 #include "chrome/browser/web_applications/web_app.h" |
32 #include "chrome/common/chrome_switches.h" | 32 #include "chrome/common/chrome_switches.h" |
33 #include "chrome/common/extensions/extension.h" | |
34 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 33 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
35 #include "chrome/common/extensions/manifest_url_handler.h" | 34 #include "chrome/common/extensions/manifest_url_handler.h" |
36 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" |
37 #include "content/public/browser/render_view_host.h" | 36 #include "content/public/browser/render_view_host.h" |
38 #include "content/public/browser/web_contents.h" | 37 #include "content/public/browser/web_contents.h" |
39 #include "content/public/browser/web_contents_view.h" | 38 #include "content/public/browser/web_contents_view.h" |
40 #include "content/public/common/renderer_preferences.h" | 39 #include "content/public/common/renderer_preferences.h" |
41 #include "extensions/common/constants.h" | 40 #include "extensions/common/constants.h" |
| 41 #include "extensions/common/extension.h" |
42 #include "grit/generated_resources.h" | 42 #include "grit/generated_resources.h" |
43 #include "ui/base/l10n/l10n_util.h" | 43 #include "ui/base/l10n/l10n_util.h" |
44 #include "ui/base/window_open_disposition.h" | 44 #include "ui/base/window_open_disposition.h" |
45 #include "ui/gfx/rect.h" | 45 #include "ui/gfx/rect.h" |
46 | 46 |
47 #if defined(OS_MACOSX) | 47 #if defined(OS_MACOSX) |
48 #include "chrome/browser/ui/browser_commands_mac.h" | 48 #include "chrome/browser/ui/browser_commands_mac.h" |
49 #endif | 49 #endif |
50 | 50 |
51 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 // up in LoadingStateChanged to schedule a GetApplicationInfo. And when | 487 // up in LoadingStateChanged to schedule a GetApplicationInfo. And when |
488 // the web app info is available, extensions::TabHelper notifies Browser via | 488 // the web app info is available, extensions::TabHelper notifies Browser via |
489 // OnDidGetApplicationInfo, which calls | 489 // OnDidGetApplicationInfo, which calls |
490 // web_app::UpdateShortcutForTabContents when it sees UPDATE_SHORTCUT as | 490 // web_app::UpdateShortcutForTabContents when it sees UPDATE_SHORTCUT as |
491 // pending web app action. | 491 // pending web app action. |
492 extensions::TabHelper::FromWebContents(tab)->set_pending_web_app_action( | 492 extensions::TabHelper::FromWebContents(tab)->set_pending_web_app_action( |
493 extensions::TabHelper::UPDATE_SHORTCUT); | 493 extensions::TabHelper::UPDATE_SHORTCUT); |
494 | 494 |
495 return tab; | 495 return tab; |
496 } | 496 } |
OLD | NEW |