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

Side by Side Diff: Source/modules/device_orientation/NewDeviceOrientationController.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 2010 Apple Inc. All rights reserved. 2 * Copyright 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
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 * * 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 copyright 10 * * Redistributions in binary form must reproduce the above copyright
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 void didChangeDeviceOrientation(WebCore::DeviceOrientationData*); 48 void didChangeDeviceOrientation(WebCore::DeviceOrientationData*);
49 49
50 private: 50 private:
51 explicit NewDeviceOrientationController(Document*); 51 explicit NewDeviceOrientationController(Document*);
52 virtual void registerWithDispatcher() OVERRIDE; 52 virtual void registerWithDispatcher() OVERRIDE;
53 virtual void unregisterWithDispatcher() OVERRIDE; 53 virtual void unregisterWithDispatcher() OVERRIDE;
54 54
55 virtual bool hasLastData() OVERRIDE; 55 virtual bool hasLastData() OVERRIDE;
56 virtual PassRefPtr<Event> getLastEvent() OVERRIDE; 56 virtual PassRefPtr<Event> getLastEvent() OVERRIDE;
57 virtual bool isNullEvent(Event*) OVERRIDE;
57 }; 58 };
58 59
59 } // namespace WebCore 60 } // namespace WebCore
60 61
61 #endif // NewDeviceOrientationController_h 62 #endif // NewDeviceOrientationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698