Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Side by Side Diff: public/web/WebGeolocationController.h

Issue 521223003: Remove geolocationDestroyed() client notification. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/web/WebGeolocationClient.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 17 matching lines...) Expand all
28 28
29 #include "../platform/WebCommon.h" 29 #include "../platform/WebCommon.h"
30 #include "../platform/WebNonCopyable.h" 30 #include "../platform/WebNonCopyable.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class GeolocationController; 34 class GeolocationController;
35 class WebGeolocationPosition; 35 class WebGeolocationPosition;
36 class WebGeolocationError; 36 class WebGeolocationError;
37 37
38 // Note that the WebGeolocationController is invalid after the
39 // WebGeolocationClient::geolocationDestroyed() has been received.
40 class WebGeolocationController : public WebNonCopyable { 38 class WebGeolocationController : public WebNonCopyable {
41 public: 39 public:
42 BLINK_EXPORT void positionChanged(const WebGeolocationPosition&); 40 BLINK_EXPORT void positionChanged(const WebGeolocationPosition&);
43 BLINK_EXPORT void errorOccurred(const WebGeolocationError&); 41 BLINK_EXPORT void errorOccurred(const WebGeolocationError&);
44 42
45 #if BLINK_IMPLEMENTATION 43 #if BLINK_IMPLEMENTATION
46 WebGeolocationController(GeolocationController* c) 44 WebGeolocationController(GeolocationController* c)
47 : m_private(c) 45 : m_private(c)
48 { 46 {
49 } 47 }
50 48
51 GeolocationController* controller() const { return m_private; } 49 GeolocationController* controller() const { return m_private; }
52 #endif 50 #endif
53 51
54 private: 52 private:
55 // No implementation for the default constructor. Declared private to ensure that no instances 53 // No implementation for the default constructor. Declared private to ensure that no instances
56 // can be created by the consumers of Chromium WebKit. 54 // can be created by the consumers of Chromium WebKit.
57 WebGeolocationController(); 55 WebGeolocationController();
58 56
59 // This bare pointer is owned and kept alive by the frame of the 57 // This bare pointer is owned and kept alive by the frame of the
60 // WebLocalFrame which creates this controller object. 58 // WebLocalFrame which creates this controller object.
61 GeolocationController* m_private; 59 GeolocationController* m_private;
62 }; 60 };
63 61
64 } // namespace blink 62 } // namespace blink
65 63
66 #endif // WebGeolocationController_h 64 #endif // WebGeolocationController_h
OLDNEW
« no previous file with comments | « public/web/WebGeolocationClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698