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

Side by Side Diff: webkit/chaos/V8CustomChaosPositionCallback.h

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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #include "ChaosPositionCallback.h"
2 #include <v8.h>
3 #include <wtf/PassRefPtr.h>
4 #include <wtf/RefPtr.h>
5
6 namespace WebCore {
7
8 class Frame;
9
10 class V8CustomChaosPositionCallback : public ChaosPositionCallback {
11 public:
12 static PassRefPtr<V8CustomChaosPositionCallback> create(Frame *frame, v8::Loca l<v8::Value> value) {
13 ASSERT(value->IsObject());
14 return adoptRef(new V8CustomChaosPositionCallback(frame, value->ToObject())) ;
15 }
16 private:
17 V8CustomChaosPositionCallback(Frame *frame, v8::Local<v8::Object> callback);
18
19 void handleEvent(ChaosGeoposition* position);
20
21 v8::Persistent<v8::Object> callback_;
22 RefPtr<Frame> frame_;
23
24 };
25
26 } // namespace WebCore
OLDNEW
« no previous file with comments | « webkit/chaos/V8ChaosGeolocationCustom.cpp ('k') | webkit/chaos/V8CustomChaosPositionCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698