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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2893243003: color: Add ColorCanvasExtensions runtime flag (Closed)
Patch Set: Update webkit_unit_tests to use new flags Created 3 years, 6 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
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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 settings->SetPrimaryPointerType( 925 settings->SetPrimaryPointerType(
926 static_cast<blink::PointerType>(prefs.primary_pointer_type)); 926 static_cast<blink::PointerType>(prefs.primary_pointer_type));
927 settings->SetAvailableHoverTypes(prefs.available_hover_types); 927 settings->SetAvailableHoverTypes(prefs.available_hover_types);
928 settings->SetPrimaryHoverType( 928 settings->SetPrimaryHoverType(
929 static_cast<blink::HoverType>(prefs.primary_hover_type)); 929 static_cast<blink::HoverType>(prefs.primary_hover_type));
930 settings->SetEnableTouchAdjustment(prefs.touch_adjustment_enabled); 930 settings->SetEnableTouchAdjustment(prefs.touch_adjustment_enabled);
931 931
932 WebRuntimeFeatures::EnableColorCorrectRendering( 932 WebRuntimeFeatures::EnableColorCorrectRendering(
933 prefs.color_correct_rendering_enabled); 933 prefs.color_correct_rendering_enabled);
934 934
935 WebRuntimeFeatures::EnableColorCorrectRenderingDefaultMode(
936 prefs.color_correct_rendering_default_mode_enabled);
937
938 settings->SetShouldRespectImageOrientation( 935 settings->SetShouldRespectImageOrientation(
939 prefs.should_respect_image_orientation); 936 prefs.should_respect_image_orientation);
940 937
941 settings->SetEditingBehavior( 938 settings->SetEditingBehavior(
942 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); 939 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior));
943 940
944 settings->SetSupportsMultipleWindows(prefs.supports_multiple_windows); 941 settings->SetSupportsMultipleWindows(prefs.supports_multiple_windows);
945 942
946 settings->SetInertVisualViewport(prefs.inert_visual_viewport); 943 settings->SetInertVisualViewport(prefs.inert_visual_viewport);
947 944
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
2673 input_event.GetCoalescedEventsPointers(), latency_info, 2670 input_event.GetCoalescedEventsPointers(), latency_info,
2674 dispatch_type); 2671 dispatch_type);
2675 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 2672 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
2676 } 2673 }
2677 idle_user_detector_->ActivityDetected(); 2674 idle_user_detector_->ActivityDetected();
2678 return RenderWidget::HandleInputEvent(input_event, latency_info, 2675 return RenderWidget::HandleInputEvent(input_event, latency_info,
2679 dispatch_type); 2676 dispatch_type);
2680 } 2677 }
2681 2678
2682 } // namespace content 2679 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.h ('k') | third_party/WebKit/LayoutTests/VirtualTestSuites » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698