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

Side by Side Diff: third_party/WebKit/Source/core/events/GenericEventQueue.cpp

Issue 1362973004: Rename FROM_HERE to BLINK_FROM_HERE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 2 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) 2012 Victor Carbune (victor@rosedu.org) 2 * Copyright (C) 2012 Victor Carbune (victor@rosedu.org)
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return false; 62 return false;
63 63
64 if (event->target() == m_owner) 64 if (event->target() == m_owner)
65 event->setTarget(nullptr); 65 event->setTarget(nullptr);
66 66
67 TRACE_EVENT_ASYNC_BEGIN1("event", "GenericEventQueue:enqueueEvent", event.ge t(), "type", event->type().ascii()); 67 TRACE_EVENT_ASYNC_BEGIN1("event", "GenericEventQueue:enqueueEvent", event.ge t(), "type", event->type().ascii());
68 InspectorInstrumentation::didEnqueueEvent(event->target() ? event->target() : m_owner.get(), event.get()); 68 InspectorInstrumentation::didEnqueueEvent(event->target() ? event->target() : m_owner.get(), event.get());
69 m_pendingEvents.append(event); 69 m_pendingEvents.append(event);
70 70
71 if (!m_timer.isActive()) 71 if (!m_timer.isActive())
72 m_timer.startOneShot(0, FROM_HERE); 72 m_timer.startOneShot(0, BLINK_FROM_HERE);
73 73
74 return true; 74 return true;
75 } 75 }
76 76
77 bool GenericEventQueue::cancelEvent(Event* event) 77 bool GenericEventQueue::cancelEvent(Event* event)
78 { 78 {
79 bool found = m_pendingEvents.contains(event); 79 bool found = m_pendingEvents.contains(event);
80 80
81 if (found) { 81 if (found) {
82 InspectorInstrumentation::didRemoveEvent(event->target() ? event->target () : m_owner.get(), event); 82 InspectorInstrumentation::didRemoveEvent(event->target() ? event->target () : m_owner.get(), event);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 m_pendingEvents.clear(); 128 m_pendingEvents.clear();
129 } 129 }
130 130
131 bool GenericEventQueue::hasPendingEvents() const 131 bool GenericEventQueue::hasPendingEvents() const
132 { 132 {
133 return m_pendingEvents.size(); 133 return m_pendingEvents.size();
134 } 134 }
135 135
136 } 136 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventSender.h ('k') | third_party/WebKit/Source/core/fetch/FontResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698