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 15 matching lines...) Expand all Loading... | |
| 26 #ifndef WebGeolocationController_h | 26 #ifndef WebGeolocationController_h |
| 27 #define WebGeolocationController_h | 27 #define WebGeolocationController_h |
| 28 | 28 |
| 29 #include "../platform/WebCommon.h" | 29 #include "../platform/WebCommon.h" |
| 30 #include "../platform/WebNonCopyable.h" | 30 #include "../platform/WebNonCopyable.h" |
| 31 #include "../platform/WebPrivatePtr.h" | 31 #include "../platform/WebPrivatePtr.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class GeolocationController; | 35 class GeolocationController; |
| 36 class GeolocationControllerPrivate; | |
| 37 class WebGeolocationPosition; | 36 class WebGeolocationPosition; |
| 38 class WebGeolocationError; | 37 class WebGeolocationError; |
| 39 | 38 |
| 40 class WebGeolocationController : public WebNonCopyable { | 39 class WebGeolocationController : public WebNonCopyable { |
| 41 public: | 40 public: |
| 42 ~WebGeolocationController() { reset(); } | 41 ~WebGeolocationController() { reset(); } |
| 43 | 42 |
| 44 BLINK_EXPORT void positionChanged(const WebGeolocationPosition&); | 43 BLINK_EXPORT void positionChanged(const WebGeolocationPosition&); |
| 45 BLINK_EXPORT void errorOccurred(const WebGeolocationError&); | 44 BLINK_EXPORT void errorOccurred(const WebGeolocationError&); |
| 46 | 45 |
| 47 #if BLINK_IMPLEMENTATION | 46 #if BLINK_IMPLEMENTATION |
| 48 WebGeolocationController(GeolocationController*); | 47 explicit WebGeolocationController(GeolocationController*); |
|
tkent
2016/04/26 12:49:22
We usually allow implicit conversion between an in
| |
| 49 #endif | 48 #endif |
| 50 | 49 |
| 51 private: | 50 private: |
| 52 // No implementation for the default constructor. Declared private to ensure that no instances | 51 // No implementation for the default constructor. Declared private to ensure that no instances |
| 53 // can be created by the consumers of Chromium WebKit. | 52 // can be created by the consumers of Chromium WebKit. |
| 54 WebGeolocationController(); | 53 WebGeolocationController(); |
| 55 | 54 |
| 56 BLINK_EXPORT void reset(); | 55 BLINK_EXPORT void reset(); |
| 57 | 56 |
| 58 WebPrivatePtr<GeolocationControllerPrivate> m_private; | 57 WebPrivatePtr<GeolocationController> m_private; |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 } // namespace blink | 60 } // namespace blink |
| 62 | 61 |
| 63 #endif // WebGeolocationController_h | 62 #endif // WebGeolocationController_h |
| OLD | NEW |