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

Side by Side Diff: sky/engine/core/frame/LocalDOMWindow.cpp

Issue 771323002: Remove a couple more core/ header includes from v8_inspector (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 } 731 }
732 732
733 return true; 733 return true;
734 } 734 }
735 735
736 void LocalDOMWindow::dispatchLoadEvent() 736 void LocalDOMWindow::dispatchLoadEvent()
737 { 737 {
738 RefPtr<Event> loadEvent(Event::create(EventTypeNames::load)); 738 RefPtr<Event> loadEvent(Event::create(EventTypeNames::load));
739 dispatchEvent(loadEvent, document()); 739 dispatchEvent(loadEvent, document());
740 740
741 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "MarkLo ad", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorMarkLoadEvent::data(frame())); 741 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "MarkLo ad", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorMarkLoadEvent::data());
742 } 742 }
743 743
744 bool LocalDOMWindow::dispatchEvent(PassRefPtr<Event> prpEvent, PassRefPtr<EventT arget> prpTarget) 744 bool LocalDOMWindow::dispatchEvent(PassRefPtr<Event> prpEvent, PassRefPtr<EventT arget> prpTarget)
745 { 745 {
746 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); 746 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden());
747 747
748 RefPtr<EventTarget> protect(this); 748 RefPtr<EventTarget> protect(this);
749 RefPtr<Event> event = prpEvent; 749 RefPtr<Event> event = prpEvent;
750 750
751 event->setTarget(prpTarget ? prpTarget : this); 751 event->setTarget(prpTarget ? prpTarget : this);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 { 797 {
798 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin dow>::lifecycleNotifier()); 798 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin dow>::lifecycleNotifier());
799 } 799 }
800 800
801 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo tifier() 801 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo tifier()
802 { 802 {
803 return DOMWindowLifecycleNotifier::create(this); 803 return DOMWindowLifecycleNotifier::create(this);
804 } 804 }
805 805
806 } // namespace blink 806 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698