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

Side by Side Diff: sky/engine/core/events/GenericEventQueue.cpp

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/events/GenericEventQueue.h ('k') | sky/engine/core/events/GestureEvent.h » ('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) 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 30 matching lines...) Expand all
41 : m_owner(owner) 41 : m_owner(owner)
42 , m_timer(this, &GenericEventQueue::timerFired) 42 , m_timer(this, &GenericEventQueue::timerFired)
43 , m_isClosed(false) 43 , m_isClosed(false)
44 { 44 {
45 } 45 }
46 46
47 GenericEventQueue::~GenericEventQueue() 47 GenericEventQueue::~GenericEventQueue()
48 { 48 {
49 } 49 }
50 50
51 void GenericEventQueue::trace(Visitor* visitor)
52 {
53 visitor->trace(m_owner);
54 visitor->trace(m_pendingEvents);
55 EventQueue::trace(visitor);
56 }
57
58 bool GenericEventQueue::enqueueEvent(PassRefPtr<Event> event) 51 bool GenericEventQueue::enqueueEvent(PassRefPtr<Event> event)
59 { 52 {
60 if (m_isClosed) 53 if (m_isClosed)
61 return false; 54 return false;
62 55
63 if (event->target() == m_owner) 56 if (event->target() == m_owner)
64 event->setTarget(nullptr); 57 event->setTarget(nullptr);
65 58
66 TRACE_EVENT_ASYNC_BEGIN1("event", "GenericEventQueue:enqueueEvent", event.ge t(), "type", event->type().ascii().data()); 59 TRACE_EVENT_ASYNC_BEGIN1("event", "GenericEventQueue:enqueueEvent", event.ge t(), "type", event->type().ascii().data());
67 m_pendingEvents.append(event); 60 m_pendingEvents.append(event);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 115 }
123 m_pendingEvents.clear(); 116 m_pendingEvents.clear();
124 } 117 }
125 118
126 bool GenericEventQueue::hasPendingEvents() const 119 bool GenericEventQueue::hasPendingEvents() const
127 { 120 {
128 return m_pendingEvents.size(); 121 return m_pendingEvents.size();
129 } 122 }
130 123
131 } 124 }
OLDNEW
« no previous file with comments | « sky/engine/core/events/GenericEventQueue.h ('k') | sky/engine/core/events/GestureEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698