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

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

Issue 122793002: Move GeolocationClientMock.h out of platform/ into web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/web/web.gypi ('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 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebGeolocationClientMock_h 31 #ifndef WebGeolocationClientMock_h
32 #define WebGeolocationClientMock_h 32 #define WebGeolocationClientMock_h
33 33
34 #include "../platform/WebCommon.h" 34 #include "../platform/WebCommon.h"
35 #include "../platform/WebPrivateOwnPtr.h" 35 #include "../platform/WebPrivateOwnPtr.h"
36 #include "WebGeolocationClient.h" 36 #include "WebGeolocationClient.h"
37 37
38 namespace WebCore { 38 namespace blink {
39 class GeolocationClientMock; 39 class GeolocationClientMock;
40 }
41
42 namespace blink {
43 class WebGeolocationPosition; 40 class WebGeolocationPosition;
44 class WebString; 41 class WebString;
45 42
46 class WebGeolocationClientMock : public WebGeolocationClient { 43 class WebGeolocationClientMock : public WebGeolocationClient {
47 public: 44 public:
48 BLINK_EXPORT static WebGeolocationClientMock* create(); 45 BLINK_EXPORT static WebGeolocationClientMock* create();
49 ~WebGeolocationClientMock() { reset(); } 46 ~WebGeolocationClientMock() { reset(); }
50 47
51 BLINK_EXPORT void setPosition(double latitude, double longitude, double accu racy); 48 BLINK_EXPORT void setPosition(double latitude, double longitude, double accu racy);
52 BLINK_EXPORT void setPositionUnavailableError(const WebString& message); 49 BLINK_EXPORT void setPositionUnavailableError(const WebString& message);
(...skipping 10 matching lines...) Expand all
63 60
64 virtual void requestPermission(const WebGeolocationPermissionRequest&); 61 virtual void requestPermission(const WebGeolocationPermissionRequest&);
65 virtual void cancelPermissionRequest(const WebGeolocationPermissionRequest&) ; 62 virtual void cancelPermissionRequest(const WebGeolocationPermissionRequest&) ;
66 63
67 virtual bool lastPosition(WebGeolocationPosition& webPosition); 64 virtual bool lastPosition(WebGeolocationPosition& webPosition);
68 65
69 private: 66 private:
70 WebGeolocationClientMock(); 67 WebGeolocationClientMock();
71 BLINK_EXPORT void reset(); 68 BLINK_EXPORT void reset();
72 69
73 WebPrivateOwnPtr<WebCore::GeolocationClientMock> m_clientMock; 70 WebPrivateOwnPtr<GeolocationClientMock> m_clientMock;
74 }; 71 };
75 } 72 }
76 73
77 #endif // WebGeolocationClientMock_h 74 #endif // WebGeolocationClientMock_h
OLDNEW
« no previous file with comments | « Source/web/web.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698