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

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

Issue 2735293002: Rename *isOverWidget* methods to ...isOverFrameViewBase... (Closed)
Patch Set: Rename *isOverWidget* methods to ...isOverFrameViewBase... Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/core/input/ScrollManager.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 /* 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 321
322 FrameViewBase* frameViewBase = toLayoutPart(layoutObject)->frameViewBase(); 322 FrameViewBase* frameViewBase = toLayoutPart(layoutObject)->frameViewBase();
323 if (!frameViewBase || !frameViewBase->isFrameView()) 323 if (!frameViewBase || !frameViewBase->isFrameView())
324 return nullptr; 324 return nullptr;
325 325
326 return &toFrameView(frameViewBase)->frame(); 326 return &toFrameView(frameViewBase)->frame();
327 } 327 }
328 328
329 static LocalFrame* subframeForHitTestResult( 329 static LocalFrame* subframeForHitTestResult(
330 const MouseEventWithHitTestResults& hitTestResult) { 330 const MouseEventWithHitTestResults& hitTestResult) {
331 if (!hitTestResult.isOverWidget()) 331 if (!hitTestResult.isOverFrameViewBase())
332 return nullptr; 332 return nullptr;
333 return subframeForTargetNode(hitTestResult.innerNode()); 333 return subframeForTargetNode(hitTestResult.innerNode());
334 } 334 }
335 335
336 static bool isSubmitImage(Node* node) { 336 static bool isSubmitImage(Node* node) {
337 return isHTMLInputElement(node) && 337 return isHTMLInputElement(node) &&
338 toHTMLInputElement(node)->type() == InputTypeNames::image; 338 toHTMLInputElement(node)->type() == InputTypeNames::image;
339 } 339 }
340 340
341 bool EventHandler::useHandCursor(Node* node, bool isOverLink) { 341 bool EventHandler::useHandCursor(Node* node, bool isOverLink) {
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 } 2094 }
2095 2095
2096 FrameHost* EventHandler::frameHost() const { 2096 FrameHost* EventHandler::frameHost() const {
2097 if (!m_frame->page()) 2097 if (!m_frame->page())
2098 return nullptr; 2098 return nullptr;
2099 2099
2100 return &m_frame->page()->frameHost(); 2100 return &m_frame->page()->frameHost();
2101 } 2101 }
2102 2102
2103 } // namespace blink 2103 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/ScrollManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698