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

Side by Side Diff: Source/core/page/EventHandler.cpp

Issue 15820002: Page::chrome() should return a reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/DOMWindow.cpp ('k') | Source/core/page/FocusController.cpp » ('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 reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 if (FrameView* frameView = m_frame->view()) { 1431 if (FrameView* frameView = m_frame->view()) {
1432 if (frameView->containsScrollableArea(layer)) 1432 if (frameView->containsScrollableArea(layer))
1433 layer->mouseMovedInContentArea(); 1433 layer->mouseMovedInContentArea();
1434 } 1434 }
1435 } 1435 }
1436 1436
1437 if (FrameView* frameView = m_frame->view()) 1437 if (FrameView* frameView = m_frame->view())
1438 frameView->mouseMovedInContentArea(); 1438 frameView->mouseMovedInContentArea();
1439 1439
1440 hoveredNode.setToShadowHostIfInUserAgentShadowRoot(); 1440 hoveredNode.setToShadowHostIfInUserAgentShadowRoot();
1441 page->chrome()->mouseDidMoveOverElement(hoveredNode, event.modifierFlags()); 1441 page->chrome().mouseDidMoveOverElement(hoveredNode, event.modifierFlags());
1442 page->chrome()->setToolTip(hoveredNode); 1442 page->chrome().setToolTip(hoveredNode);
1443 1443
1444 return result; 1444 return result;
1445 } 1445 }
1446 1446
1447 bool EventHandler::passMouseMovedEventToScrollbars(const PlatformMouseEvent& eve nt) 1447 bool EventHandler::passMouseMovedEventToScrollbars(const PlatformMouseEvent& eve nt)
1448 { 1448 {
1449 HitTestResult hoveredNode; 1449 HitTestResult hoveredNode;
1450 return handleMouseMoveEvent(event, &hoveredNode, true); 1450 return handleMouseMoveEvent(event, &hoveredNode, true);
1451 } 1451 }
1452 1452
(...skipping 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after
3884 unsigned EventHandler::accessKeyModifiers() 3884 unsigned EventHandler::accessKeyModifiers()
3885 { 3885 {
3886 #if OS(DARWIN) 3886 #if OS(DARWIN)
3887 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 3887 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
3888 #else 3888 #else
3889 return PlatformEvent::AltKey; 3889 return PlatformEvent::AltKey;
3890 #endif 3890 #endif
3891 } 3891 }
3892 3892
3893 } // namespace WebCore 3893 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/DOMWindow.cpp ('k') | Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698