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

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

Issue 2776073002: Workaround for Samsung email issues (Closed)
Patch Set: add a comment to web_preferences.h Created 3 years, 8 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
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/Source/core/dom/Range.cpp » ('j') | 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 "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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 base::SysInfo::IsLowEndDevice(); 1070 base::SysInfo::IsLowEndDevice();
1071 // TODO(mlamouri): rename this setting "isLowEndDevice". 1071 // TODO(mlamouri): rename this setting "isLowEndDevice".
1072 settings->setForcePreloadNoneForMediaElements(is_low_end_device); 1072 settings->setForcePreloadNoneForMediaElements(is_low_end_device);
1073 1073
1074 WebRuntimeFeatures::enableVideoFullscreenOrientationLock( 1074 WebRuntimeFeatures::enableVideoFullscreenOrientationLock(
1075 prefs.video_fullscreen_orientation_lock_enabled); 1075 prefs.video_fullscreen_orientation_lock_enabled);
1076 WebRuntimeFeatures::enableVideoFullscreenDetection( 1076 WebRuntimeFeatures::enableVideoFullscreenDetection(
1077 prefs.video_fullscreen_detection_enabled); 1077 prefs.video_fullscreen_detection_enabled);
1078 settings->setEmbeddedMediaExperienceEnabled( 1078 settings->setEmbeddedMediaExperienceEnabled(
1079 prefs.embedded_media_experience_enabled); 1079 prefs.embedded_media_experience_enabled);
1080 settings->setDoNotUpdateSelectionOnMutatingSelectionRange(
1081 prefs.do_not_update_selection_on_mutating_selection_range);
1080 #else // defined(OS_ANDROID) 1082 #else // defined(OS_ANDROID)
1081 settings->setCrossOriginMediaPlaybackRequiresUserGesture( 1083 settings->setCrossOriginMediaPlaybackRequiresUserGesture(
1082 prefs.cross_origin_media_playback_requires_user_gesture); 1084 prefs.cross_origin_media_playback_requires_user_gesture);
1083 #endif // defined(OS_ANDROID) 1085 #endif // defined(OS_ANDROID)
1084 1086
1085 settings->setViewportEnabled(prefs.viewport_enabled); 1087 settings->setViewportEnabled(prefs.viewport_enabled);
1086 settings->setViewportMetaEnabled(prefs.viewport_meta_enabled); 1088 settings->setViewportMetaEnabled(prefs.viewport_meta_enabled);
1087 settings->setShrinksViewportContentToFit( 1089 settings->setShrinksViewportContentToFit(
1088 prefs.shrinks_viewport_contents_to_fit); 1090 prefs.shrinks_viewport_contents_to_fit);
1089 settings->setViewportStyle( 1091 settings->setViewportStyle(
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
2753 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); 2755 INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
2754 } 2756 }
2755 2757
2756 std::unique_ptr<InputEventAck> ack( 2758 std::unique_ptr<InputEventAck> ack(
2757 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), 2759 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(),
2758 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); 2760 INPUT_EVENT_ACK_STATE_NOT_CONSUMED));
2759 OnInputEventAck(std::move(ack)); 2761 OnInputEventAck(std::move(ack));
2760 } 2762 }
2761 2763
2762 } // namespace content 2764 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698