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

Side by Side Diff: Source/WebCore/dom/DeviceOrientationController.h

Issue 6476007: Merge 77418 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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, The Android Open Source Project 2 * Copyright 2010, The Android Open Source Project
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 * * Redistributions of source code must retain the above copyright 7 * * 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 * * Redistributions in binary form must reproduce the above copyright 9 * * 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 void didChangeDeviceOrientation(DeviceOrientation*); 49 void didChangeDeviceOrientation(DeviceOrientation*);
50 50
51 bool isActive() { return !m_listeners.isEmpty(); } 51 bool isActive() { return !m_listeners.isEmpty(); }
52 52
53 private: 53 private:
54 void timerFired(Timer<DeviceOrientationController>*); 54 void timerFired(Timer<DeviceOrientationController>*);
55 55
56 Page* m_page; 56 Page* m_page;
57 DeviceOrientationClient* m_client; 57 DeviceOrientationClient* m_client;
58 typedef HashCountedSet<DOMWindow*> ListenersCountedSet; 58 typedef HashCountedSet<RefPtr<DOMWindow> > ListenersCountedSet;
59 ListenersCountedSet m_listeners; 59 ListenersCountedSet m_listeners;
60 typedef HashSet<DOMWindow*> ListenersSet; 60 typedef HashSet<RefPtr<DOMWindow> > ListenersSet;
61 ListenersSet m_newListeners; 61 ListenersSet m_newListeners;
62 Timer<DeviceOrientationController> m_timer; 62 Timer<DeviceOrientationController> m_timer;
63 }; 63 };
64 64
65 } // namespace WebCore 65 } // namespace WebCore
66 66
67 #endif // DeviceOrientationController_h 67 #endif // DeviceOrientationController_h
OLDNEW
« no previous file with comments | « Source/WebCore/dom/DeviceMotionController.cpp ('k') | Source/WebCore/dom/DeviceOrientationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698