OLD | NEW |
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 Loading... |
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 |
OLD | NEW |