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

Side by Side Diff: Source/modules/geolocation/Geolocation.h

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/geolocation/GeoNotifier.cpp ('k') | Source/modules/geolocation/Geolocation.cpp » ('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) 2008, 2009, 2010, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All Rights Reserved.
3 * Copyright 2010, The Android Open Source Project 3 * Copyright 2010, The Android Open Source Project
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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 static Geolocation* create(ExecutionContext*); 58 static Geolocation* create(ExecutionContext*);
59 virtual ~Geolocation(); 59 virtual ~Geolocation();
60 void trace(Visitor*); 60 void trace(Visitor*);
61 61
62 virtual void stop() OVERRIDE; 62 virtual void stop() OVERRIDE;
63 Document* document() const; 63 Document* document() const;
64 LocalFrame* frame() const; 64 LocalFrame* frame() const;
65 65
66 // Creates a oneshot and attempts to obtain a position that meets the 66 // Creates a oneshot and attempts to obtain a position that meets the
67 // constraints of the options. 67 // constraints of the options.
68 void getCurrentPosition(PassOwnPtrWillBeRawPtr<PositionCallback>, PassOwnPtr WillBeRawPtr<PositionErrorCallback>, const Dictionary&); 68 void getCurrentPosition(PositionCallback*, PositionErrorCallback*, const Dic tionary&);
69 69
70 // Creates a watcher that will be notified whenever a new position is 70 // Creates a watcher that will be notified whenever a new position is
71 // available that meets the constraints of the options. 71 // available that meets the constraints of the options.
72 int watchPosition(PassOwnPtrWillBeRawPtr<PositionCallback>, PassOwnPtrWillBe RawPtr<PositionErrorCallback>, const Dictionary&); 72 int watchPosition(PositionCallback*, PositionErrorCallback*, const Dictionar y&);
73 73
74 // Removes all references to the watcher, it will not be updated again. 74 // Removes all references to the watcher, it will not be updated again.
75 void clearWatch(int watchID); 75 void clearWatch(int watchID);
76 76
77 void setIsAllowed(bool); 77 void setIsAllowed(bool);
78 78
79 bool isAllowed() const { return m_geolocationPermission == PermissionAllowed ; } 79 bool isAllowed() const { return m_geolocationPermission == PermissionAllowed ; }
80 80
81 // Notifies this that a new position is available. Must never be called 81 // Notifies this that a new position is available. Must never be called
82 // before permission is granted by the user. 82 // before permission is granted by the user.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 }; 180 };
181 181
182 Permission m_geolocationPermission; 182 Permission m_geolocationPermission;
183 183
184 GeoNotifierSet m_requestsAwaitingCachedPosition; 184 GeoNotifierSet m_requestsAwaitingCachedPosition;
185 }; 185 };
186 186
187 } // namespace blink 187 } // namespace blink
188 188
189 #endif // Geolocation_h 189 #endif // Geolocation_h
OLDNEW
« no previous file with comments | « Source/modules/geolocation/GeoNotifier.cpp ('k') | Source/modules/geolocation/Geolocation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698