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

Side by Side Diff: Source/web/GeolocationClientMock.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/FrameLoaderClientImpl.cpp ('k') | Source/web/GeolocationClientProxy.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 * 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 29 matching lines...) Expand all
40 #include "wtf/text/WTFString.h" 40 #include "wtf/text/WTFString.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 class GeolocationController; 43 class GeolocationController;
44 class GeolocationPosition; 44 class GeolocationPosition;
45 } 45 }
46 46
47 namespace blink { 47 namespace blink {
48 48
49 // Provides a mock object for the geolocation client. 49 // Provides a mock object for the geolocation client.
50 class GeolocationClientMock : public WebCore::GeolocationClient { 50 class GeolocationClientMock FINAL : public WebCore::GeolocationClient {
51 public: 51 public:
52 GeolocationClientMock(); 52 GeolocationClientMock();
53 virtual ~GeolocationClientMock(); 53 virtual ~GeolocationClientMock();
54 54
55 void reset(); 55 void reset();
56 void setController(WebCore::GeolocationController*); 56 void setController(WebCore::GeolocationController*);
57 57
58 void setPosition(PassRefPtr<WebCore::GeolocationPosition>); 58 void setPosition(PassRefPtr<WebCore::GeolocationPosition>);
59 void setPositionUnavailableError(const String& errorMessage); 59 void setPositionUnavailableError(const String& errorMessage);
60 void setPermission(bool allowed); 60 void setPermission(bool allowed);
(...skipping 30 matching lines...) Expand all
91 PermissionStateAllowed, 91 PermissionStateAllowed,
92 PermissionStateDenied, 92 PermissionStateDenied,
93 } m_permissionState; 93 } m_permissionState;
94 typedef WTF::HashSet<RefPtr<WebCore::Geolocation> > GeolocationSet; 94 typedef WTF::HashSet<RefPtr<WebCore::Geolocation> > GeolocationSet;
95 GeolocationSet m_pendingPermission; 95 GeolocationSet m_pendingPermission;
96 }; 96 };
97 97
98 } 98 }
99 99
100 #endif 100 #endif
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/GeolocationClientProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698