Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 23619024: [Android WebView] Enable spatial navigation / DPAD (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: switches Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "android_webview/browser/aw_content_browser_client.h" 7 #include "android_webview/browser/aw_content_browser_client.h"
8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" 8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" 9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" 10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // WebView uses the Android system's scrollbars and overscroll glow. 57 // WebView uses the Android system's scrollbars and overscroll glow.
58 cl->AppendSwitch(switches::kHideScrollbars); 58 cl->AppendSwitch(switches::kHideScrollbars);
59 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); 59 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect);
60 60
61 // Not yet secure in single-process mode. 61 // Not yet secure in single-process mode.
62 cl->AppendSwitch(switches::kDisableExperimentalWebGL); 62 cl->AppendSwitch(switches::kDisableExperimentalWebGL);
63 63
64 // Ganesh backed 2D-Canvas is not yet working and causes crashes. 64 // Ganesh backed 2D-Canvas is not yet working and causes crashes.
65 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas); 65 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas);
66 66
67 // File system API not supported (requires some new API; internal bug 6930981)
68 // TODO(joth): export and use switches::kDisableFileSystem
69 cl->AppendSwitch("disable-file-system");
70
71 // Enable D-PAD navigation for application compatibility.
72 // TODO(joth): export and use switches::EnableSpatialNavigation.
73 cl->AppendSwitch("enable-spatial-navigation");
74
67 return false; 75 return false;
68 } 76 }
69 77
70 void AwMainDelegate::PreSandboxStartup() { 78 void AwMainDelegate::PreSandboxStartup() {
71 // TODO(torne): When we have a separate renderer process, we need to handle 79 // TODO(torne): When we have a separate renderer process, we need to handle
72 // being passed open FDs for the resource paks here. 80 // being passed open FDs for the resource paks here.
73 } 81 }
74 82
75 void AwMainDelegate::SandboxInitialized(const std::string& process_type) { 83 void AwMainDelegate::SandboxInitialized(const std::string& process_type) {
76 // TODO(torne): Adjust linux OOM score here. 84 // TODO(torne): Adjust linux OOM score here.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 AwBrowserContext* browser_context) { 133 AwBrowserContext* browser_context) {
126 return AwGeolocationPermissionContext::Create(browser_context); 134 return AwGeolocationPermissionContext::Create(browser_context);
127 } 135 }
128 136
129 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( 137 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate(
130 content::WebContents* web_contents) { 138 content::WebContents* web_contents) {
131 return AwWebContentsViewDelegate::Create(web_contents); 139 return AwWebContentsViewDelegate::Create(web_contents);
132 } 140 }
133 141
134 } // namespace android_webview 142 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698