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

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

Issue 2886943007: Introduce NavigatorWebDriver interface
Patch Set: wip: need more tests Created 3 years, 7 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 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 settings->SetHideDownloadUI(prefs.hide_download_ui); 1086 settings->SetHideDownloadUI(prefs.hide_download_ui);
1087 WebRuntimeFeatures::EnableBackgroundVideoTrackOptimization( 1087 WebRuntimeFeatures::EnableBackgroundVideoTrackOptimization(
1088 prefs.background_video_track_optimization_enabled); 1088 prefs.background_video_track_optimization_enabled);
1089 WebRuntimeFeatures::EnableNewRemotePlaybackPipeline( 1089 WebRuntimeFeatures::EnableNewRemotePlaybackPipeline(
1090 base::FeatureList::IsEnabled(media::kNewRemotePlaybackPipeline)); 1090 base::FeatureList::IsEnabled(media::kNewRemotePlaybackPipeline));
1091 1091
1092 settings->SetPresentationReceiver(prefs.presentation_receiver); 1092 settings->SetPresentationReceiver(prefs.presentation_receiver);
1093 1093
1094 settings->SetMediaControlsEnabled(prefs.media_controls_enabled); 1094 settings->SetMediaControlsEnabled(prefs.media_controls_enabled);
1095 1095
1096 settings->SetAutomationControlled(prefs.automation_controlled);
1097
1096 #if defined(OS_MACOSX) 1098 #if defined(OS_MACOSX)
1097 settings->SetDoubleTapToZoomEnabled(true); 1099 settings->SetDoubleTapToZoomEnabled(true);
1098 web_view->SetMaximumLegibleScale(prefs.default_maximum_page_scale_factor); 1100 web_view->SetMaximumLegibleScale(prefs.default_maximum_page_scale_factor);
1099 #endif 1101 #endif
1100 1102
1101 #if defined(OS_WIN) 1103 #if defined(OS_WIN)
1102 WebRuntimeFeatures::EnableMiddleClickAutoscroll(true); 1104 WebRuntimeFeatures::EnableMiddleClickAutoscroll(true);
1103 #endif 1105 #endif
1104 } 1106 }
1105 1107
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 input_event.GetCoalescedEventsPointers(), latency_info, 2673 input_event.GetCoalescedEventsPointers(), latency_info,
2672 dispatch_type); 2674 dispatch_type);
2673 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 2675 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
2674 } 2676 }
2675 idle_user_detector_->ActivityDetected(); 2677 idle_user_detector_->ActivityDetected();
2676 return RenderWidget::HandleInputEvent(input_event, latency_info, 2678 return RenderWidget::HandleInputEvent(input_event, latency_info,
2677 dispatch_type); 2679 dispatch_type);
2678 } 2680 }
2679 2681
2680 } // namespace content 2682 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/LayoutTests/external/wpt/interfaces/html.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698