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

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

Issue 8536003: Pointer Lock (was Mouse Lock) added to about:flags and passed to WebKit runtime flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pointer lock rename Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <unicode/uchar.h> 7 #include <unicode/uchar.h>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 composite_to_texture_enabled(false), 81 composite_to_texture_enabled(false),
82 fixed_position_compositing_enabled(false), 82 fixed_position_compositing_enabled(false),
83 accelerated_layers_enabled(false), 83 accelerated_layers_enabled(false),
84 accelerated_video_enabled(false), 84 accelerated_video_enabled(false),
85 accelerated_2d_canvas_enabled(false), 85 accelerated_2d_canvas_enabled(false),
86 accelerated_drawing_enabled(false), 86 accelerated_drawing_enabled(false),
87 accelerated_plugins_enabled(false), 87 accelerated_plugins_enabled(false),
88 memory_info_enabled(false), 88 memory_info_enabled(false),
89 interactive_form_validation_enabled(true), 89 interactive_form_validation_enabled(true),
90 fullscreen_enabled(false), 90 fullscreen_enabled(false),
91 pointer_lock_enabled(false),
91 allow_displaying_insecure_content(true), 92 allow_displaying_insecure_content(true),
92 allow_running_insecure_content(false), 93 allow_running_insecure_content(false),
93 should_print_backgrounds(false), 94 should_print_backgrounds(false),
94 enable_scroll_animator(false), 95 enable_scroll_animator(false),
95 hixie76_websocket_protocol_enabled(false), 96 hixie76_websocket_protocol_enabled(false),
96 visual_word_movement_enabled(false) { 97 visual_word_movement_enabled(false) {
97 } 98 }
98 99
99 WebPreferences::~WebPreferences() { 100 WebPreferences::~WebPreferences() {
100 } 101 }
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 WebString::fromUTF8(it->second)); 307 WebString::fromUTF8(it->second));
307 308
308 // Tabs to link is not part of the settings. WebCore calls 309 // Tabs to link is not part of the settings. WebCore calls
309 // ChromeClient::tabsToLinks which is part of the glue code. 310 // ChromeClient::tabsToLinks which is part of the glue code.
310 web_view->setTabsToLinks(tabs_to_links); 311 web_view->setTabsToLinks(tabs_to_links);
311 312
312 settings->setInteractiveFormValidationEnabled( 313 settings->setInteractiveFormValidationEnabled(
313 interactive_form_validation_enabled); 314 interactive_form_validation_enabled);
314 315
315 settings->setFullScreenEnabled(fullscreen_enabled); 316 settings->setFullScreenEnabled(fullscreen_enabled);
317 settings->setPointerLockEnabled(pointer_lock_enabled);
316 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content); 318 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content);
317 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content); 319 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content);
318 settings->setShouldPrintBackgrounds(should_print_backgrounds); 320 settings->setShouldPrintBackgrounds(should_print_backgrounds);
319 settings->setEnableScrollAnimator(enable_scroll_animator); 321 settings->setEnableScrollAnimator(enable_scroll_animator);
320 settings->setHixie76WebSocketProtocolEnabled( 322 settings->setHixie76WebSocketProtocolEnabled(
321 hixie76_websocket_protocol_enabled); 323 hixie76_websocket_protocol_enabled);
322 settings->setVisualWordMovementEnabled(visual_word_movement_enabled); 324 settings->setVisualWordMovementEnabled(visual_word_movement_enabled);
323 325
324 WebNetworkStateNotifier::setOnLine(is_online); 326 WebNetworkStateNotifier::setOnLine(is_online);
325 } 327 }
OLDNEW
« chrome/app/generated_resources.grd ('K') | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698