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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 void EventHandler::setMouseDownMayStartAutoscroll() { 1400 void EventHandler::setMouseDownMayStartAutoscroll() {
1401 m_mouseEventManager->setMouseDownMayStartAutoscroll(); 1401 m_mouseEventManager->setMouseDownMayStartAutoscroll();
1402 } 1402 }
1403 1403
1404 bool EventHandler::isScrollbarHandlingGestures() const { 1404 bool EventHandler::isScrollbarHandlingGestures() const {
1405 return m_scrollManager->isScrollbarHandlingGestures(); 1405 return m_scrollManager->isScrollbarHandlingGestures();
1406 } 1406 }
1407 1407
1408 bool EventHandler::shouldApplyTouchAdjustment( 1408 bool EventHandler::shouldApplyTouchAdjustment(
1409 const WebGestureEvent& event) const { 1409 const WebGestureEvent& event) const {
1410 if (m_frame->settings() && !m_frame->settings()->touchAdjustmentEnabled()) 1410 if (m_frame->settings() && !m_frame->settings()->getTouchAdjustmentEnabled())
1411 return false; 1411 return false;
1412 return !event.tapAreaInRootFrame().isEmpty(); 1412 return !event.tapAreaInRootFrame().isEmpty();
1413 } 1413 }
1414 1414
1415 bool EventHandler::bestClickableNodeForHitTestResult( 1415 bool EventHandler::bestClickableNodeForHitTestResult(
1416 const HitTestResult& result, 1416 const HitTestResult& result,
1417 IntPoint& targetPoint, 1417 IntPoint& targetPoint,
1418 Node*& targetNode) { 1418 Node*& targetNode) {
1419 // FIXME: Unify this with the other best* functions which are very similar. 1419 // FIXME: Unify this with the other best* functions which are very similar.
1420 1420
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1876 // Use the focused node as the target for hover and active. 1876 // Use the focused node as the target for hover and active.
1877 HitTestRequest request(HitTestRequest::Active); 1877 HitTestRequest request(HitTestRequest::Active);
1878 HitTestResult result(request, locationInRootFrame); 1878 HitTestResult result(request, locationInRootFrame);
1879 result.setInnerNode(targetNode); 1879 result.setInnerNode(targetNode);
1880 doc->updateHoverActiveState(request, result.innerElement(), 1880 doc->updateHoverActiveState(request, result.innerElement(),
1881 result.scrollbar()); 1881 result.scrollbar());
1882 1882
1883 // The contextmenu event is a mouse event even when invoked using the 1883 // The contextmenu event is a mouse event even when invoked using the
1884 // keyboard. This is required for web compatibility. 1884 // keyboard. This is required for web compatibility.
1885 PlatformEvent::EventType eventType = PlatformEvent::MousePressed; 1885 PlatformEvent::EventType eventType = PlatformEvent::MousePressed;
1886 if (m_frame->settings() && m_frame->settings()->showContextMenuOnMouseUp()) 1886 if (m_frame->settings() && m_frame->settings()->getShowContextMenuOnMouseUp())
1887 eventType = PlatformEvent::MouseReleased; 1887 eventType = PlatformEvent::MouseReleased;
1888 1888
1889 PlatformMouseEvent mouseEvent( 1889 PlatformMouseEvent mouseEvent(
1890 locationInRootFrame, globalPosition, 1890 locationInRootFrame, globalPosition,
1891 WebPointerProperties::Button::NoButton, eventType, /* clickCount */ 0, 1891 WebPointerProperties::Button::NoButton, eventType, /* clickCount */ 0,
1892 PlatformEvent::NoModifiers, PlatformMouseEvent::RealOrIndistinguishable, 1892 PlatformEvent::NoModifiers, PlatformMouseEvent::RealOrIndistinguishable,
1893 TimeTicks::Now(), WebPointerProperties::PointerType::Mouse); 1893 TimeTicks::Now(), WebPointerProperties::PointerType::Mouse);
1894 1894
1895 return sendContextMenuEvent(mouseEvent, overrideTargetElement); 1895 return sendContextMenuEvent(mouseEvent, overrideTargetElement);
1896 } 1896 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
2123 } 2123 }
2124 2124
2125 FrameHost* EventHandler::frameHost() const { 2125 FrameHost* EventHandler::frameHost() const {
2126 if (!m_frame->page()) 2126 if (!m_frame->page())
2127 return nullptr; 2127 return nullptr;
2128 2128
2129 return &m_frame->page()->frameHost(); 2129 return &m_frame->page()->frameHost();
2130 } 2130 }
2131 2131
2132 } // namespace blink 2132 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp ('k') | third_party/WebKit/Source/core/input/GestureManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698