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

Side by Side Diff: Source/modules/device_orientation/DeviceSensorEventDispatcher.h

Issue 21256002: Fire null Device Motion events only once. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed comments Created 7 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual ~DeviceSensorEventDispatcher(); 42 virtual ~DeviceSensorEventDispatcher();
43 43
44 void addController(DeviceSensorEventController*); 44 void addController(DeviceSensorEventController*);
45 void removeController(DeviceSensorEventController*); 45 void removeController(DeviceSensorEventController*);
46 void purgeControllers(); 46 void purgeControllers();
47 47
48 virtual void startListening() = 0; 48 virtual void startListening() = 0;
49 virtual void stopListening() = 0; 49 virtual void stopListening() = 0;
50 50
51 Vector<DeviceSensorEventController*> m_controllers; 51 Vector<DeviceSensorEventController*> m_controllers;
52 bool m_needsPurge;
53 bool m_isDispatching;
52 }; 54 };
53 55
54 } // namespace WebCore 56 } // namespace WebCore
55 57
56 #endif // DeviceSensorEventDispatcher_h 58 #endif // DeviceSensorEventDispatcher_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698