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

Side by Side Diff: webkit/chaos/V8ChaosGeolocationCustom.cpp

Issue 149391: Chaos Demo Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « webkit/chaos/ChaosPositionCallback.idl ('k') | webkit/chaos/V8CustomChaosPositionCallback.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include "ChaosGeolocation.h"
2 #include "V8CustomChaosPositionCallback.h"
3 #include "V8ObjectEventListener.h"
4 #include "V8Proxy.h"
5 #include "base/logging.h"
6
7 namespace WebCore {
8
9 CALLBACK_FUNC_DECL(ChaosGeolocationWatchPosition) {
10 LOG(WARNING) << "watchPosition";
11 ChaosGeolocation* geolocation = V8Proxy::convertToNativeObject<ChaosGeolocatio n>(V8ClassIndex::CHAOSGEOLOCATION, args.Holder());
12 V8Proxy* proxy = V8Proxy::retrieve();
13 Frame *frame = V8Proxy::retrieveFrame(); // may not be needed?
14
15 RefPtr<V8CustomChaosPositionCallback> successCallback
16 = V8CustomChaosPositionCallback::create(args[0]);
17
18 geolocation->watchPosition(successCallback);
19 }
20
21 } // namespace WebCore
OLDNEW
« no previous file with comments | « webkit/chaos/ChaosPositionCallback.idl ('k') | webkit/chaos/V8CustomChaosPositionCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698