OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "modules/geolocation/GeolocationClient.h" | 30 #include "modules/geolocation/GeolocationClient.h" |
31 #include "wtf/RefPtr.h" | 31 #include "wtf/RefPtr.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 class GeolocationPosition; | 34 class GeolocationPosition; |
35 } | 35 } |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 class WebGeolocationClient; | 38 class WebGeolocationClient; |
39 | 39 |
40 class GeolocationClientProxy : public WebCore::GeolocationClient { | 40 class GeolocationClientProxy FINAL : public WebCore::GeolocationClient { |
41 public: | 41 public: |
42 GeolocationClientProxy(WebGeolocationClient* client); | 42 GeolocationClientProxy(WebGeolocationClient* client); |
43 ~GeolocationClientProxy(); | 43 virtual ~GeolocationClientProxy(); |
44 void setController(WebCore::GeolocationController *controller); | 44 void setController(WebCore::GeolocationController *controller); |
45 virtual void geolocationDestroyed(); | 45 virtual void geolocationDestroyed() OVERRIDE; |
46 virtual void startUpdating(); | 46 virtual void startUpdating() OVERRIDE; |
47 virtual void stopUpdating(); | 47 virtual void stopUpdating() OVERRIDE; |
48 virtual void setEnableHighAccuracy(bool); | 48 virtual void setEnableHighAccuracy(bool) OVERRIDE; |
49 virtual WebCore::GeolocationPosition* lastPosition(); | 49 virtual WebCore::GeolocationPosition* lastPosition() OVERRIDE; |
50 | 50 |
51 virtual void requestPermission(WebCore::Geolocation*); | 51 virtual void requestPermission(WebCore::Geolocation*) OVERRIDE; |
52 virtual void cancelPermissionRequest(WebCore::Geolocation*); | 52 virtual void cancelPermissionRequest(WebCore::Geolocation*) OVERRIDE; |
53 | 53 |
54 private: | 54 private: |
55 WebGeolocationClient* m_client; | 55 WebGeolocationClient* m_client; |
56 RefPtr<WebCore::GeolocationPosition> m_lastPosition; | 56 RefPtr<WebCore::GeolocationPosition> m_lastPosition; |
57 }; | 57 }; |
58 | 58 |
59 } // namespace blink | 59 } // namespace blink |
60 | 60 |
61 #endif // GeolocationClientProxy_h | 61 #endif // GeolocationClientProxy_h |
OLD | NEW |