| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 class WebString; | 41 class WebString; |
| 42 class WebURL; | 42 class WebURL; |
| 43 | 43 |
| 44 // Provides a WebKit API called by the embedder. | 44 // Provides a WebKit API called by the embedder. |
| 45 class WebGeolocationServiceBridge { | 45 class WebGeolocationServiceBridge { |
| 46 public: | 46 public: |
| 47 virtual void setIsAllowed(bool allowed) = 0; | 47 virtual void setIsAllowed(bool allowed) = 0; |
| 48 virtual void setLastPosition(double latitude, double longitude, bool provide
sAltitude, double altitude, double accuracy, bool providesAltitudeAccuracy, doub
le altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, d
ouble speed, long long timestamp) = 0; | 48 virtual void setLastPosition(double latitude, double longitude, bool provide
sAltitude, double altitude, double accuracy, bool providesAltitudeAccuracy, doub
le altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, d
ouble speed, long long timestamp) = 0; |
| 49 virtual void setLastError(int errorCode, const WebString& message) = 0; | 49 virtual void setLastError(int errorCode, const WebString& message) = 0; |
| 50 virtual void onWebGeolocationServiceDestroyed() = 0; |
| 51 |
| 52 protected: |
| 53 virtual ~WebGeolocationServiceBridge() {} |
| 50 }; | 54 }; |
| 51 | 55 |
| 52 } // namespace WebKit | 56 } // namespace WebKit |
| 53 | 57 |
| 54 #endif // WebGeolocationServiceBridge_h | 58 #endif // WebGeolocationServiceBridge_h |
| OLD | NEW |