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

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

Issue 160084: Chaos geolocation demo, non-WebKit part. Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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/GeolocationPowerbox.h ('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')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #include "config.h"
2
3 #include "ChaosGeolocation.h"
4 #include "V8CustomChaosPositionCallback.h"
5 #include "V8ObjectEventListener.h"
6 #include "V8Proxy.h"
7 #undef LOG
8 #include "base/logging.h"
9
10 namespace WebCore {
11
12 CALLBACK_FUNC_DECL(ChaosGeolocationWatchPosition) {
13 LOG(WARNING) << "watchPosition";
14 ChaosGeolocation* geolocation = V8DOMWrapper::convertToNativeObject<ChaosGeolo cation>(V8ClassIndex::CHAOSGEOLOCATION, args.Holder());
15 V8Proxy* proxy = V8Proxy::retrieve();
16 Frame *frame = V8Proxy::retrieveFrameForCurrentContext();
17
18 RefPtr<V8CustomChaosPositionCallback> successCallback
19 = V8CustomChaosPositionCallback::create(frame, args[0]);
20
21 int handle = geolocation->watchPosition(successCallback);
22
23 return v8::Integer::New(handle);
24 }
25
26 } // namespace WebCore
OLDNEW
« no previous file with comments | « webkit/chaos/GeolocationPowerbox.h ('k') | webkit/chaos/V8CustomChaosPositionCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698