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

Side by Side Diff: webkit/glue/webpreferences.cc

Issue 460020: Add command line flag and associated prefs to allow run-time enable of geoloc... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years 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 | « webkit/glue/webpreferences.h ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "webkit/glue/webpreferences.h" 5 #include "webkit/glue/webpreferences.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "third_party/WebKit/WebKit/chromium/public/WebRuntimeFeatures.h" 8 #include "third_party/WebKit/WebKit/chromium/public/WebRuntimeFeatures.h"
9 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" 9 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebSettings.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebSettings.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // We prevent WebKit from checking if it needs to add a "text direction" 78 // We prevent WebKit from checking if it needs to add a "text direction"
79 // submenu to a context menu. it is not only because we don't need the result 79 // submenu to a context menu. it is not only because we don't need the result
80 // but also because it cause a possible crash in Editor::hasBidiSelection(). 80 // but also because it cause a possible crash in Editor::hasBidiSelection().
81 settings->setTextDirectionSubmenuInclusionBehaviorNeverIncluded(); 81 settings->setTextDirectionSubmenuInclusionBehaviorNeverIncluded();
82 82
83 // Enable experimental WebGL support if requested on command line 83 // Enable experimental WebGL support if requested on command line
84 // and support is compiled in. 84 // and support is compiled in.
85 settings->setExperimentalWebGLEnabled(experimental_webgl_enabled); 85 settings->setExperimentalWebGLEnabled(experimental_webgl_enabled);
86 86
87 // Enable geolocation support if requested on command line and support is
88 // compiled in.
89 settings->setGeolocationEnabled(geolocation_enabled);
90
87 // Web inspector settings need to be passed in differently. 91 // Web inspector settings need to be passed in differently.
88 web_view->setInspectorSettings(WebString::fromUTF8(inspector_settings)); 92 web_view->setInspectorSettings(WebString::fromUTF8(inspector_settings));
89 93
90 // Tabs to link is not part of the settings. WebCore calls 94 // Tabs to link is not part of the settings. WebCore calls
91 // ChromeClient::tabsToLinks which is part of the glue code. 95 // ChromeClient::tabsToLinks which is part of the glue code.
92 web_view->setTabsToLinks(tabs_to_links); 96 web_view->setTabsToLinks(tabs_to_links);
93 } 97 }
OLDNEW
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698