OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/browser_commands.h" | 5 #include "chrome/browser/ui/browser_commands.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 #include "chrome/common/chrome_switches.h" | 58 #include "chrome/common/chrome_switches.h" |
59 #include "chrome/common/pref_names.h" | 59 #include "chrome/common/pref_names.h" |
60 #include "content/public/browser/devtools_agent_host.h" | 60 #include "content/public/browser/devtools_agent_host.h" |
61 #include "content/public/browser/navigation_controller.h" | 61 #include "content/public/browser/navigation_controller.h" |
62 #include "content/public/browser/navigation_entry.h" | 62 #include "content/public/browser/navigation_entry.h" |
63 #include "content/public/browser/page_navigator.h" | 63 #include "content/public/browser/page_navigator.h" |
64 #include "content/public/browser/render_view_host.h" | 64 #include "content/public/browser/render_view_host.h" |
65 #include "content/public/browser/user_metrics.h" | 65 #include "content/public/browser/user_metrics.h" |
66 #include "content/public/browser/web_contents.h" | 66 #include "content/public/browser/web_contents.h" |
67 #include "content/public/browser/web_contents_view.h" | 67 #include "content/public/browser/web_contents_view.h" |
68 #include "content/public/browser/web_intents_dispatcher.h" | |
69 #include "content/public/common/content_client.h" | 68 #include "content/public/common/content_client.h" |
70 #include "content/public/common/content_restriction.h" | 69 #include "content/public/common/content_restriction.h" |
71 #include "content/public/common/renderer_preferences.h" | 70 #include "content/public/common/renderer_preferences.h" |
72 #include "content/public/common/url_constants.h" | 71 #include "content/public/common/url_constants.h" |
73 #include "net/base/escape.h" | 72 #include "net/base/escape.h" |
74 #include "webkit/glue/glue_serialize.h" | 73 #include "webkit/glue/glue_serialize.h" |
75 #include "webkit/glue/web_intent_data.h" | |
76 #include "webkit/user_agent/user_agent_util.h" | 74 #include "webkit/user_agent/user_agent_util.h" |
77 | 75 |
78 #if defined(OS_MACOSX) | 76 #if defined(OS_MACOSX) |
79 #include "ui/base/cocoa/find_pasteboard.h" | 77 #include "ui/base/cocoa/find_pasteboard.h" |
80 #endif | 78 #endif |
81 | 79 |
82 #if defined(OS_WIN) | 80 #if defined(OS_WIN) |
83 #include "chrome/browser/ui/metro_pin_tab_helper_win.h" | 81 #include "chrome/browser/ui/metro_pin_tab_helper_win.h" |
84 #include "win8/util/win8_util.h" | 82 #include "win8/util/win8_util.h" |
85 #endif | 83 #endif |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 Browser::CreateParams::CreateForApp( | 1092 Browser::CreateParams::CreateForApp( |
1095 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile())); | 1093 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile())); |
1096 app_browser->tab_strip_model()->AppendWebContents(contents, true); | 1094 app_browser->tab_strip_model()->AppendWebContents(contents, true); |
1097 | 1095 |
1098 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; | 1096 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; |
1099 contents->GetRenderViewHost()->SyncRendererPrefs(); | 1097 contents->GetRenderViewHost()->SyncRendererPrefs(); |
1100 app_browser->window()->Show(); | 1098 app_browser->window()->Show(); |
1101 } | 1099 } |
1102 | 1100 |
1103 } // namespace chrome | 1101 } // namespace chrome |
OLD | NEW |