| 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 30 matching lines...) Expand all Loading... |
| 41 public: | 41 public: |
| 42 BLINK_EXPORT void positionChanged(const WebGeolocationPosition&); | 42 BLINK_EXPORT void positionChanged(const WebGeolocationPosition&); |
| 43 BLINK_EXPORT void errorOccurred(const WebGeolocationError&); | 43 BLINK_EXPORT void errorOccurred(const WebGeolocationError&); |
| 44 | 44 |
| 45 #if BLINK_IMPLEMENTATION | 45 #if BLINK_IMPLEMENTATION |
| 46 WebGeolocationController(GeolocationController* c) | 46 WebGeolocationController(GeolocationController* c) |
| 47 : m_private(c) | 47 : m_private(c) |
| 48 { | 48 { |
| 49 } | 49 } |
| 50 | 50 |
| 51 blink::GeolocationController* controller() const { return m_private; } | 51 GeolocationController* controller() const { return m_private; } |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 // No implementation for the default constructor. Declared private to ensure
that no instances | 55 // No implementation for the default constructor. Declared private to ensure
that no instances |
| 56 // can be created by the consumers of Chromium WebKit. | 56 // can be created by the consumers of Chromium WebKit. |
| 57 WebGeolocationController(); | 57 WebGeolocationController(); |
| 58 | 58 |
| 59 // This bare pointer is owned and kept alive by the frame of the |
| 60 // WebLocalFrame which creates this controller object. |
| 59 GeolocationController* m_private; | 61 GeolocationController* m_private; |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 } // namespace blink | 64 } // namespace blink |
| 63 | 65 |
| 64 #endif // WebGeolocationController_h | 66 #endif // WebGeolocationController_h |
| OLD | NEW |