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 26 matching lines...) Expand all Loading... |
37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
38 #include "wtf/HashSet.h" | 38 #include "wtf/HashSet.h" |
39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 class GeolocationController; | 43 class GeolocationController; |
44 class GeolocationPosition; | 44 class GeolocationPosition; |
45 | 45 |
46 // Provides a mock object for the geolocation client. | 46 // Provides a mock object for the geolocation client. |
47 class GeolocationClientMock : public GeolocationClient { | 47 class GeolocationClientMock final : public GeolocationClient { |
48 public: | 48 public: |
49 GeolocationClientMock(); | 49 GeolocationClientMock(); |
50 ~GeolocationClientMock() override; | 50 ~GeolocationClientMock() override; |
51 | 51 |
52 void setPosition(GeolocationPosition*); | 52 void setPosition(GeolocationPosition*); |
53 void setPositionUnavailableError(const String& errorMessage); | 53 void setPositionUnavailableError(const String& errorMessage); |
54 void setPermission(bool allowed); | 54 void setPermission(bool allowed); |
55 int numberOfPendingPermissionRequests() const; | 55 int numberOfPendingPermissionRequests() const; |
56 | 56 |
57 // GeolocationClient | 57 // GeolocationClient |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 PermissionState m_permissionState; | 94 PermissionState m_permissionState; |
95 | 95 |
96 typedef PersistentHeapHashSetWillBeHeapHashSet<Member<Geolocation>> Geolocat
ionSet; | 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 |