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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 694533010: [NOT FOR REVIEW] Working cpp enum example (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('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/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 const std::string autoplay_group_name = base::FieldTrialList::FindFullName( 406 const std::string autoplay_group_name = base::FieldTrialList::FindFullName(
407 "MediaElementAutoplay"); 407 "MediaElementAutoplay");
408 prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch( 408 prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch(
409 switches::kDisableGestureRequirementForMediaPlayback) && 409 switches::kDisableGestureRequirementForMediaPlayback) &&
410 (autoplay_group_name.empty() || autoplay_group_name != "Enabled"); 410 (autoplay_group_name.empty() || autoplay_group_name != "Enabled");
411 #endif 411 #endif
412 412
413 prefs.touch_enabled = ui::AreTouchEventsEnabled(); 413 prefs.touch_enabled = ui::AreTouchEventsEnabled();
414 prefs.device_supports_touch = prefs.touch_enabled && 414 prefs.device_supports_touch = prefs.touch_enabled &&
415 ui::IsTouchDevicePresent(); 415 ui::IsTouchDevicePresent();
416 prefs.available_pointer_types = ui::AvailablePointerTypes();
417 prefs.primary_pointer_type =
418 static_cast<content::PointerType>(ui::PrimaryPointerType());
419 prefs.available_hover_types = ui::AvailableHoverTypes();
420 prefs.primary_hover_type =
421 static_cast<content::HoverType>(ui::PrimaryHoverType());
422
416 #if defined(OS_ANDROID) 423 #if defined(OS_ANDROID)
417 prefs.device_supports_mouse = false; 424 prefs.device_supports_mouse = false;
418 #endif 425 #endif
419 426
420 prefs.pointer_events_max_touch_points = ui::MaxTouchPoints(); 427 prefs.pointer_events_max_touch_points = ui::MaxTouchPoints();
421 428
422 prefs.touch_adjustment_enabled = 429 prefs.touch_adjustment_enabled =
423 !command_line.HasSwitch(switches::kDisableTouchAdjustment); 430 !command_line.HasSwitch(switches::kDisableTouchAdjustment);
424 431
425 prefs.slimming_paint_enabled = 432 prefs.slimming_paint_enabled =
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 FrameTree* frame_tree = delegate_->GetFrameTree(); 1463 FrameTree* frame_tree = delegate_->GetFrameTree();
1457 1464
1458 frame_tree->ResetForMainFrameSwap(); 1465 frame_tree->ResetForMainFrameSwap();
1459 } 1466 }
1460 1467
1461 void RenderViewHostImpl::SelectWordAroundCaret() { 1468 void RenderViewHostImpl::SelectWordAroundCaret() {
1462 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1469 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1463 } 1470 }
1464 1471
1465 } // namespace content 1472 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698