Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 #define WebGeolocationClient_h | 27 #define WebGeolocationClient_h |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class WebGeolocationController; | 31 class WebGeolocationController; |
| 32 class WebGeolocationPermissionRequest; | 32 class WebGeolocationPermissionRequest; |
| 33 class WebGeolocationPosition; | 33 class WebGeolocationPosition; |
| 34 | 34 |
| 35 class WebGeolocationClient { | 35 class WebGeolocationClient { |
| 36 public: | 36 public: |
| 37 virtual ~WebGeolocationClient() {} | 37 virtual ~WebGeolocationClient() { } |
| 38 | 38 |
| 39 virtual void startUpdating() = 0; | 39 virtual void startUpdating() = 0; |
| 40 virtual void stopUpdating() = 0; | 40 virtual void stopUpdating() = 0; |
| 41 virtual void setEnableHighAccuracy(bool) = 0; | 41 virtual void setEnableHighAccuracy(bool) = 0; |
| 42 virtual void geolocationDestroyed() = 0; | 42 virtual void geolocationDestroyed() { } |
|
sof
2014/08/22 08:42:26
To prepare for any Chromium-side removal of geoloc
| |
| 43 virtual bool lastPosition(WebGeolocationPosition&) = 0; | 43 virtual bool lastPosition(WebGeolocationPosition&) = 0; |
| 44 | 44 |
| 45 virtual void requestPermission(const WebGeolocationPermissionRequest&) = 0; | 45 virtual void requestPermission(const WebGeolocationPermissionRequest&) = 0; |
| 46 virtual void cancelPermissionRequest(const WebGeolocationPermissionRequest&) = 0; | 46 virtual void cancelPermissionRequest(const WebGeolocationPermissionRequest&) = 0; |
| 47 | 47 |
| 48 // The controller is valid until geolocationDestroyed() is invoked. | 48 // The controller is valid until geolocationDestroyed() is invoked. |
| 49 // Ownership of the WebGeolocationController is transferred to the client. | 49 // Ownership of the WebGeolocationController is transferred to the client. |
| 50 virtual void setController(WebGeolocationController*) = 0; | 50 virtual void setController(WebGeolocationController*) = 0; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace blink | 53 } // namespace blink |
| 54 | 54 |
| 55 #endif // WebGeolocationClient_h | 55 #endif // WebGeolocationClient_h |
| OLD | NEW |