OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Apple Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Apple Inc. 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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 private: | 69 private: |
70 void asyncUpdateController(); | 70 void asyncUpdateController(); |
71 void controllerTimerFired(Timer<GeolocationClientMock>*); | 71 void controllerTimerFired(Timer<GeolocationClientMock>*); |
72 | 72 |
73 void asyncUpdatePermission(); | 73 void asyncUpdatePermission(); |
74 void permissionTimerFired(Timer<GeolocationClientMock>*); | 74 void permissionTimerFired(Timer<GeolocationClientMock>*); |
75 | 75 |
76 void clearError(); | 76 void clearError(); |
77 | 77 |
78 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<GeolocationController> > Ge
olocationControllers; | 78 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<GeolocationController>> Geo
locationControllers; |
79 GeolocationControllers m_controllers; | 79 GeolocationControllers m_controllers; |
80 | 80 |
81 PersistentWillBeMember<GeolocationPosition> m_lastPosition; | 81 PersistentWillBeMember<GeolocationPosition> m_lastPosition; |
82 bool m_hasError; | 82 bool m_hasError; |
83 String m_errorMessage; | 83 String m_errorMessage; |
84 Timer<GeolocationClientMock> m_controllerTimer; | 84 Timer<GeolocationClientMock> m_controllerTimer; |
85 Timer<GeolocationClientMock> m_permissionTimer; | 85 Timer<GeolocationClientMock> m_permissionTimer; |
86 bool m_isActive; | 86 bool m_isActive; |
87 | 87 |
88 enum PermissionState { | 88 enum PermissionState { |
89 PermissionStateUnset, | 89 PermissionStateUnset, |
90 PermissionStateAllowed, | 90 PermissionStateAllowed, |
91 PermissionStateDenied | 91 PermissionStateDenied |
92 }; | 92 }; |
93 | 93 |
94 PermissionState m_permissionState; | 94 PermissionState m_permissionState; |
95 | 95 |
96 typedef PersistentHeapHashSetWillBeHeapHashSet<Member<Geolocation> > Geoloca
tionSet; | 96 typedef PersistentHeapHashSetWillBeHeapHashSet<Member<Geolocation>> Geolocat
ionSet; |
97 GeolocationSet m_pendingPermissions; | 97 GeolocationSet m_pendingPermissions; |
98 }; | 98 }; |
99 | 99 |
100 } | 100 } |
101 | 101 |
102 #endif | 102 #endif |
OLD | NEW |