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

Side by Side Diff: Source/web/GeolocationClientProxy.h

Issue 135753002: Update web classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/GeolocationClientMock.h ('k') | Source/web/GraphicsLayerFactoryChromium.h » ('j') | 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 19 matching lines...) Expand all
30 #include "modules/geolocation/GeolocationClient.h" 30 #include "modules/geolocation/GeolocationClient.h"
31 #include "wtf/RefPtr.h" 31 #include "wtf/RefPtr.h"
32 32
33 namespace WebCore { 33 namespace WebCore {
34 class GeolocationPosition; 34 class GeolocationPosition;
35 } 35 }
36 36
37 namespace blink { 37 namespace blink {
38 class WebGeolocationClient; 38 class WebGeolocationClient;
39 39
40 class GeolocationClientProxy : public WebCore::GeolocationClient { 40 class GeolocationClientProxy FINAL : public WebCore::GeolocationClient {
41 public: 41 public:
42 GeolocationClientProxy(WebGeolocationClient* client); 42 GeolocationClientProxy(WebGeolocationClient* client);
43 ~GeolocationClientProxy(); 43 virtual ~GeolocationClientProxy();
44 void setController(WebCore::GeolocationController *controller); 44 void setController(WebCore::GeolocationController *controller);
45 virtual void geolocationDestroyed(); 45 virtual void geolocationDestroyed() OVERRIDE;
46 virtual void startUpdating(); 46 virtual void startUpdating() OVERRIDE;
47 virtual void stopUpdating(); 47 virtual void stopUpdating() OVERRIDE;
48 virtual void setEnableHighAccuracy(bool); 48 virtual void setEnableHighAccuracy(bool) OVERRIDE;
49 virtual WebCore::GeolocationPosition* lastPosition(); 49 virtual WebCore::GeolocationPosition* lastPosition() OVERRIDE;
50 50
51 virtual void requestPermission(WebCore::Geolocation*); 51 virtual void requestPermission(WebCore::Geolocation*) OVERRIDE;
52 virtual void cancelPermissionRequest(WebCore::Geolocation*); 52 virtual void cancelPermissionRequest(WebCore::Geolocation*) OVERRIDE;
53 53
54 private: 54 private:
55 WebGeolocationClient* m_client; 55 WebGeolocationClient* m_client;
56 RefPtr<WebCore::GeolocationPosition> m_lastPosition; 56 RefPtr<WebCore::GeolocationPosition> m_lastPosition;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // GeolocationClientProxy_h 61 #endif // GeolocationClientProxy_h
OLDNEW
« no previous file with comments | « Source/web/GeolocationClientMock.h ('k') | Source/web/GraphicsLayerFactoryChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698