| 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 21 matching lines...) Expand all Loading... |
| 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() { } | |
| 43 virtual bool lastPosition(WebGeolocationPosition&) = 0; | 42 virtual bool lastPosition(WebGeolocationPosition&) = 0; |
| 44 | 43 |
| 45 virtual void requestPermission(const WebGeolocationPermissionRequest&) = 0; | 44 virtual void requestPermission(const WebGeolocationPermissionRequest&) = 0; |
| 46 virtual void cancelPermissionRequest(const WebGeolocationPermissionRequest&)
= 0; | 45 virtual void cancelPermissionRequest(const WebGeolocationPermissionRequest&)
= 0; |
| 47 | 46 |
| 48 // The controller is valid until geolocationDestroyed() is invoked. | |
| 49 // Ownership of the WebGeolocationController is transferred to the client. | 47 // Ownership of the WebGeolocationController is transferred to the client. |
| 50 virtual void setController(WebGeolocationController*) = 0; | 48 virtual void setController(WebGeolocationController*) = 0; |
| 51 }; | 49 }; |
| 52 | 50 |
| 53 } // namespace blink | 51 } // namespace blink |
| 54 | 52 |
| 55 #endif // WebGeolocationClient_h | 53 #endif // WebGeolocationClient_h |
| OLD | NEW |