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

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

Issue 334283004: Rename DOMWindow to LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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/DOMWindowPagePopup.cpp ('k') | Source/core/page/EventSource.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 3537 matching lines...) Expand 10 before | Expand all | Expand 10 after
3548 } else { 3548 } else {
3549 // If we don't have a target registered for the point it means we've 3549 // If we don't have a target registered for the point it means we've
3550 // missed our opportunity to do a hit test for it (due to some 3550 // missed our opportunity to do a hit test for it (due to some
3551 // optimization that prevented blink from ever seeing the 3551 // optimization that prevented blink from ever seeing the
3552 // touchstart), or that the touch started outside the active touch 3552 // touchstart), or that the touch started outside the active touch
3553 // sequence document. We should still include the touch in the 3553 // sequence document. We should still include the touch in the
3554 // Touches list reported to the application (eg. so it can 3554 // Touches list reported to the application (eg. so it can
3555 // differentiate between a one and two finger gesture), but we won't 3555 // differentiate between a one and two finger gesture), but we won't
3556 // actually dispatch any events for it. Set the target to the 3556 // actually dispatch any events for it. Set the target to the
3557 // Document so that there's some valid node here. Perhaps this 3557 // Document so that there's some valid node here. Perhaps this
3558 // should really be DOMWindow, but in all other cases the target of 3558 // should really be LocalDOMWindow, but in all other cases the targe t of
3559 // a Touch is a Node so using the window could be a breaking change. 3559 // a Touch is a Node so using the window could be a breaking change.
3560 // Since we know there was no handler invoked, the specific target 3560 // Since we know there was no handler invoked, the specific target
3561 // should be completely irrelevant to the application. 3561 // should be completely irrelevant to the application.
3562 // FIXME: Oilpan: We can remove the following .get() if EventTarget 3562 // FIXME: Oilpan: We can remove the following .get() if EventTarget
3563 // is on-heap. 3563 // is on-heap.
3564 touchTarget = m_touchSequenceDocument.get(); 3564 touchTarget = m_touchSequenceDocument.get();
3565 targetFrame = m_touchSequenceDocument->frame(); 3565 targetFrame = m_touchSequenceDocument->frame();
3566 knownTarget = false; 3566 knownTarget = false;
3567 } 3567 }
3568 ASSERT(targetFrame); 3568 ASSERT(targetFrame);
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
3756 unsigned EventHandler::accessKeyModifiers() 3756 unsigned EventHandler::accessKeyModifiers()
3757 { 3757 {
3758 #if OS(MACOSX) 3758 #if OS(MACOSX)
3759 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 3759 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
3760 #else 3760 #else
3761 return PlatformEvent::AltKey; 3761 return PlatformEvent::AltKey;
3762 #endif 3762 #endif
3763 } 3763 }
3764 3764
3765 } // namespace WebCore 3765 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/DOMWindowPagePopup.cpp ('k') | Source/core/page/EventSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698