| 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 29 matching lines...) Expand all Loading... |
| 40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 class GeolocationController; | 43 class GeolocationController; |
| 44 class GeolocationPosition; | 44 class GeolocationPosition; |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 // Provides a mock object for the geolocation client. | 49 // Provides a mock object for the geolocation client. |
| 50 class GeolocationClientMock : public WebCore::GeolocationClient { | 50 class GeolocationClientMock FINAL : public WebCore::GeolocationClient { |
| 51 public: | 51 public: |
| 52 GeolocationClientMock(); | 52 GeolocationClientMock(); |
| 53 virtual ~GeolocationClientMock(); | 53 virtual ~GeolocationClientMock(); |
| 54 | 54 |
| 55 void reset(); | 55 void reset(); |
| 56 void setController(WebCore::GeolocationController*); | 56 void setController(WebCore::GeolocationController*); |
| 57 | 57 |
| 58 void setPosition(PassRefPtr<WebCore::GeolocationPosition>); | 58 void setPosition(PassRefPtr<WebCore::GeolocationPosition>); |
| 59 void setPositionUnavailableError(const String& errorMessage); | 59 void setPositionUnavailableError(const String& errorMessage); |
| 60 void setPermission(bool allowed); | 60 void setPermission(bool allowed); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 91 PermissionStateAllowed, | 91 PermissionStateAllowed, |
| 92 PermissionStateDenied, | 92 PermissionStateDenied, |
| 93 } m_permissionState; | 93 } m_permissionState; |
| 94 typedef WTF::HashSet<RefPtr<WebCore::Geolocation> > GeolocationSet; | 94 typedef WTF::HashSet<RefPtr<WebCore::Geolocation> > GeolocationSet; |
| 95 GeolocationSet m_pendingPermission; | 95 GeolocationSet m_pendingPermission; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } | 98 } |
| 99 | 99 |
| 100 #endif | 100 #endif |
| OLD | NEW |