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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 InspectorInstrumentation::loadEventFired(frame()); 1409 InspectorInstrumentation::loadEventFired(frame());
1410 } 1410 }
1411 1411
1412 DispatchEventResult LocalDOMWindow::dispatchEvent(Event* event, EventTarget* tar get) 1412 DispatchEventResult LocalDOMWindow::dispatchEvent(Event* event, EventTarget* tar get)
1413 { 1413 {
1414 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); 1414 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden());
1415 1415
1416 event->setTrusted(true); 1416 event->setTrusted(true);
1417 event->setTarget(target ? target : this); 1417 event->setTarget(target ? target : this);
1418 event->setCurrentTarget(this); 1418 event->setCurrentTarget(this);
1419 event->setEventPhase(Event::AT_TARGET); 1419 event->setEventPhase(Event::kAtTarget);
1420 1420
1421 TRACE_EVENT1("devtools.timeline", "EventDispatch", "data", InspectorEventDis patchEvent::data(*event)); 1421 TRACE_EVENT1("devtools.timeline", "EventDispatch", "data", InspectorEventDis patchEvent::data(*event));
1422 return fireEventListeners(event); 1422 return fireEventListeners(event);
1423 } 1423 }
1424 1424
1425 void LocalDOMWindow::removeAllEventListeners() 1425 void LocalDOMWindow::removeAllEventListeners()
1426 { 1426 {
1427 EventTarget::removeAllEventListeners(); 1427 EventTarget::removeAllEventListeners();
1428 1428
1429 for (auto& it : m_eventListenerObservers) { 1429 for (auto& it : m_eventListenerObservers) {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 { 1543 {
1544 // If the LocalDOMWindow still has a frame reference, that frame must point 1544 // If the LocalDOMWindow still has a frame reference, that frame must point
1545 // back to this LocalDOMWindow: otherwise, it's easy to get into a situation 1545 // back to this LocalDOMWindow: otherwise, it's easy to get into a situation
1546 // where script execution leaks between different LocalDOMWindows. 1546 // where script execution leaks between different LocalDOMWindows.
1547 if (m_frameObserver->frame()) 1547 if (m_frameObserver->frame())
1548 ASSERT_WITH_SECURITY_IMPLICATION(m_frameObserver->frame()->domWindow() = = this); 1548 ASSERT_WITH_SECURITY_IMPLICATION(m_frameObserver->frame()->domWindow() = = this);
1549 return m_frameObserver->frame(); 1549 return m_frameObserver->frame();
1550 } 1550 }
1551 1551
1552 } // namespace blink 1552 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameSerializer.cpp ('k') | third_party/WebKit/Source/core/html/HTMLFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698