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

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
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 3540 matching lines...) Expand 10 before | Expand all | Expand 10 after
3551 } else { 3551 } else {
3552 // If we don't have a target registered for the point it means we've 3552 // If we don't have a target registered for the point it means we've
3553 // missed our opportunity to do a hit test for it (due to some 3553 // missed our opportunity to do a hit test for it (due to some
3554 // optimization that prevented blink from ever seeing the 3554 // optimization that prevented blink from ever seeing the
3555 // touchstart), or that the touch started outside the active touch 3555 // touchstart), or that the touch started outside the active touch
3556 // sequence document. We should still include the touch in the 3556 // sequence document. We should still include the touch in the
3557 // Touches list reported to the application (eg. so it can 3557 // Touches list reported to the application (eg. so it can
3558 // differentiate between a one and two finger gesture), but we won't 3558 // differentiate between a one and two finger gesture), but we won't
3559 // actually dispatch any events for it. Set the target to the 3559 // actually dispatch any events for it. Set the target to the
3560 // Document so that there's some valid node here. Perhaps this 3560 // Document so that there's some valid node here. Perhaps this
3561 // should really be DOMWindow, but in all other cases the target of 3561 // should really be LocalDOMWindow, but in all other cases the targe t of
3562 // a Touch is a Node so using the window could be a breaking change. 3562 // a Touch is a Node so using the window could be a breaking change.
3563 // Since we know there was no handler invoked, the specific target 3563 // Since we know there was no handler invoked, the specific target
3564 // should be completely irrelevant to the application. 3564 // should be completely irrelevant to the application.
3565 // FIXME: Oilpan: We can remove the following .get() if EventTarget 3565 // FIXME: Oilpan: We can remove the following .get() if EventTarget
3566 // is on-heap. 3566 // is on-heap.
3567 touchTarget = m_touchSequenceDocument.get(); 3567 touchTarget = m_touchSequenceDocument.get();
3568 targetFrame = m_touchSequenceDocument->frame(); 3568 targetFrame = m_touchSequenceDocument->frame();
3569 knownTarget = false; 3569 knownTarget = false;
3570 } 3570 }
3571 ASSERT(targetFrame); 3571 ASSERT(targetFrame);
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
3764 unsigned EventHandler::accessKeyModifiers() 3764 unsigned EventHandler::accessKeyModifiers()
3765 { 3765 {
3766 #if OS(MACOSX) 3766 #if OS(MACOSX)
3767 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 3767 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
3768 #else 3768 #else
3769 return PlatformEvent::AltKey; 3769 return PlatformEvent::AltKey;
3770 #endif 3770 #endif
3771 } 3771 }
3772 3772
3773 } // namespace WebCore 3773 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698