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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 958
959 // Mouse events will be associated with the Document where mousedown 959 // Mouse events will be associated with the Document where mousedown
960 // occurred. If, e.g., there is a mousedown, then a drag to a different 960 // occurred. If, e.g., there is a mousedown, then a drag to a different
961 // Document and mouseup there, the mouseup's gesture will be associated with 961 // Document and mouseup there, the mouseup's gesture will be associated with
962 // the mousedown's Document. It's not absolutely certain that this is the 962 // the mousedown's Document. It's not absolutely certain that this is the
963 // correct behavior. 963 // correct behavior.
964 std::unique_ptr<UserGestureIndicator> gestureIndicator; 964 std::unique_ptr<UserGestureIndicator> gestureIndicator;
965 if (m_frame->localFrameRoot() 965 if (m_frame->localFrameRoot()
966 ->eventHandler() 966 ->eventHandler()
967 .m_lastMouseDownUserGestureToken) { 967 .m_lastMouseDownUserGestureToken) {
968 gestureIndicator = wrapUnique(new UserGestureIndicator( 968 gestureIndicator = WTF::wrapUnique(new UserGestureIndicator(
969 m_frame->localFrameRoot() 969 m_frame->localFrameRoot()
970 ->eventHandler() 970 ->eventHandler()
971 .m_lastMouseDownUserGestureToken.release())); 971 .m_lastMouseDownUserGestureToken.release()));
972 } else { 972 } else {
973 gestureIndicator = wrapUnique(new UserGestureIndicator( 973 gestureIndicator = WTF::wrapUnique(new UserGestureIndicator(
974 DocumentUserGestureToken::create(m_frame->document()))); 974 DocumentUserGestureToken::create(m_frame->document())));
975 } 975 }
976 976
977 WebInputEventResult eventResult = updatePointerTargetAndDispatchEvents( 977 WebInputEventResult eventResult = updatePointerTargetAndDispatchEvents(
978 EventTypeNames::mouseup, mev.innerNode(), mev.event(), 978 EventTypeNames::mouseup, mev.innerNode(), mev.event(),
979 Vector<PlatformMouseEvent>()); 979 Vector<PlatformMouseEvent>());
980 980
981 WebInputEventResult clickEventResult = 981 WebInputEventResult clickEventResult =
982 m_mouseEventManager->dispatchMouseClickIfNeeded(mev); 982 m_mouseEventManager->dispatchMouseClickIfNeeded(mev);
983 983
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 } 2129 }
2130 2130
2131 FrameHost* EventHandler::frameHost() const { 2131 FrameHost* EventHandler::frameHost() const {
2132 if (!m_frame->page()) 2132 if (!m_frame->page())
2133 return nullptr; 2133 return nullptr;
2134 2134
2135 return &m_frame->page()->frameHost(); 2135 return &m_frame->page()->frameHost();
2136 } 2136 }
2137 2137
2138 } // namespace blink 2138 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698