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 "android_webview/lib/main/aw_main_delegate.h" | 5 #include "android_webview/lib/main/aw_main_delegate.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "android_webview/browser/aw_content_browser_client.h" | 9 #include "android_webview/browser/aw_content_browser_client.h" |
10 #include "android_webview/browser/browser_view_renderer.h" | 10 #include "android_webview/browser/browser_view_renderer.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "content/public/browser/browser_main_runner.h" | 35 #include "content/public/browser/browser_main_runner.h" |
36 #include "content/public/browser/browser_thread.h" | 36 #include "content/public/browser/browser_thread.h" |
37 #include "content/public/common/content_descriptors.h" | 37 #include "content/public/common/content_descriptors.h" |
38 #include "content/public/common/content_features.h" | 38 #include "content/public/common/content_features.h" |
39 #include "content/public/common/content_switches.h" | 39 #include "content/public/common/content_switches.h" |
40 #include "gin/public/isolate_holder.h" | 40 #include "gin/public/isolate_holder.h" |
41 #include "gin/v8_initializer.h" | 41 #include "gin/v8_initializer.h" |
42 #include "gpu/command_buffer/service/gpu_switches.h" | 42 #include "gpu/command_buffer/service/gpu_switches.h" |
43 #include "gpu/ipc/gl_in_process_context.h" | 43 #include "gpu/ipc/gl_in_process_context.h" |
44 #include "media/base/media_switches.h" | 44 #include "media/base/media_switches.h" |
| 45 #include "media/media_features.h" |
45 #include "ui/base/resource/resource_bundle.h" | 46 #include "ui/base/resource/resource_bundle.h" |
46 #include "ui/events/gesture_detection/gesture_configuration.h" | 47 #include "ui/events/gesture_detection/gesture_configuration.h" |
47 | 48 |
48 namespace android_webview { | 49 namespace android_webview { |
49 | 50 |
50 namespace { | 51 namespace { |
51 | 52 |
52 // TODO(boliu): Remove this global Allow once the underlying issues are | 53 // TODO(boliu): Remove this global Allow once the underlying issues are |
53 // resolved - http://crbug.com/240453. See AwMainDelegate::RunProcess below. | 54 // resolved - http://crbug.com/240453. See AwMainDelegate::RunProcess below. |
54 base::LazyInstance<std::unique_ptr<ScopedAllowWaitForLegacyWebViewApi>> | 55 base::LazyInstance<std::unique_ptr<ScopedAllowWaitForLegacyWebViewApi>> |
(...skipping 20 matching lines...) Expand all Loading... |
75 // Not yet supported in single-process mode. | 76 // Not yet supported in single-process mode. |
76 cl->AppendSwitch(switches::kDisableSharedWorkers); | 77 cl->AppendSwitch(switches::kDisableSharedWorkers); |
77 | 78 |
78 // File system API not supported (requires some new API; internal bug 6930981) | 79 // File system API not supported (requires some new API; internal bug 6930981) |
79 cl->AppendSwitch(switches::kDisableFileSystem); | 80 cl->AppendSwitch(switches::kDisableFileSystem); |
80 | 81 |
81 // Web Notification API and the Push API are not supported (crbug.com/434712) | 82 // Web Notification API and the Push API are not supported (crbug.com/434712) |
82 cl->AppendSwitch(switches::kDisableNotifications); | 83 cl->AppendSwitch(switches::kDisableNotifications); |
83 | 84 |
84 // WebRTC hardware decoding is not supported, internal bug 15075307 | 85 // WebRTC hardware decoding is not supported, internal bug 15075307 |
85 #if defined(ENABLE_WEBRTC) | 86 #if BUILDFLAG(ENABLE_WEBRTC) |
86 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); | 87 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); |
87 #endif | 88 #endif |
88 | 89 |
89 // This is needed for sharing textures across the different GL threads. | 90 // This is needed for sharing textures across the different GL threads. |
90 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); | 91 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); |
91 | 92 |
92 // WebView does not yet support screen orientation locking. | 93 // WebView does not yet support screen orientation locking. |
93 cl->AppendSwitch(switches::kDisableScreenOrientationLock); | 94 cl->AppendSwitch(switches::kDisableScreenOrientationLock); |
94 | 95 |
95 // WebView does not currently support Web Speech API (crbug.com/487255) | 96 // WebView does not currently support Web Speech API (crbug.com/487255) |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 260 |
260 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { | 261 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { |
261 return new AwWebPreferencesPopulaterImpl(); | 262 return new AwWebPreferencesPopulaterImpl(); |
262 } | 263 } |
263 | 264 |
264 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() { | 265 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() { |
265 return new AwLocaleManagerImpl(); | 266 return new AwLocaleManagerImpl(); |
266 } | 267 } |
267 | 268 |
268 } // namespace android_webview | 269 } // namespace android_webview |
OLD | NEW |