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

Side by Side Diff: Source/modules/geolocation/testing/GeolocationClientMock.h

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2012 Apple Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 public: 48 public:
49 GeolocationClientMock(); 49 GeolocationClientMock();
50 virtual ~GeolocationClientMock(); 50 virtual ~GeolocationClientMock();
51 51
52 void setPosition(GeolocationPosition*); 52 void setPosition(GeolocationPosition*);
53 void setPositionUnavailableError(const String& errorMessage); 53 void setPositionUnavailableError(const String& errorMessage);
54 void setPermission(bool allowed); 54 void setPermission(bool allowed);
55 int numberOfPendingPermissionRequests() const; 55 int numberOfPendingPermissionRequests() const;
56 56
57 // GeolocationClient 57 // GeolocationClient
58 virtual void startUpdating() OVERRIDE; 58 virtual void startUpdating() override;
59 virtual void stopUpdating() OVERRIDE; 59 virtual void stopUpdating() override;
60 virtual void setEnableHighAccuracy(bool) OVERRIDE; 60 virtual void setEnableHighAccuracy(bool) override;
61 virtual GeolocationPosition* lastPosition() OVERRIDE; 61 virtual GeolocationPosition* lastPosition() override;
62 virtual void requestPermission(Geolocation*) OVERRIDE; 62 virtual void requestPermission(Geolocation*) override;
63 virtual void cancelPermissionRequest(Geolocation*) OVERRIDE; 63 virtual void cancelPermissionRequest(Geolocation*) override;
64 void controllerForTestAdded(GeolocationController*) OVERRIDE; 64 void controllerForTestAdded(GeolocationController*) override;
65 void controllerForTestRemoved(GeolocationController*) OVERRIDE; 65 void controllerForTestRemoved(GeolocationController*) override;
66 66
67 virtual void trace(Visitor*) OVERRIDE; 67 virtual void trace(Visitor*) override;
68 68
69 private: 69 private:
70 void asyncUpdateController(); 70 void asyncUpdateController();
71 void controllerTimerFired(Timer<GeolocationClientMock>*); 71 void controllerTimerFired(Timer<GeolocationClientMock>*);
72 72
73 void asyncUpdatePermission(); 73 void asyncUpdatePermission();
74 void permissionTimerFired(Timer<GeolocationClientMock>*); 74 void permissionTimerFired(Timer<GeolocationClientMock>*);
75 75
76 void clearError(); 76 void clearError();
77 77
(...skipping 15 matching lines...) Expand all
93 93
94 PermissionState m_permissionState; 94 PermissionState m_permissionState;
95 95
96 typedef PersistentHeapHashSetWillBeHeapHashSet<Member<Geolocation> > Geoloca tionSet; 96 typedef PersistentHeapHashSetWillBeHeapHashSet<Member<Geolocation> > Geoloca tionSet;
97 GeolocationSet m_pendingPermissions; 97 GeolocationSet m_pendingPermissions;
98 }; 98 };
99 99
100 } 100 }
101 101
102 #endif 102 #endif
OLDNEW
« no previous file with comments | « Source/modules/geolocation/NavigatorGeolocation.h ('k') | Source/modules/indexeddb/DOMWindowIndexedDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698