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

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

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
OLDNEW
(Empty)
1 #include "ChaosPositionCallback.h"
2 #include <v8.h>
3 #include <wtf/PassRefPtr.h>
4
5 namespace WebCore {
6
7 class V8CustomChaosPositionCallback : public ChaosPositionCallback {
8 public:
9 static PassRefPtr<V8CustomChaosPositionCallback> create(v8::Local<v8::Value> v alue) {
10 ASSERT(value->IsObject());
11 return adoptRef(new V8CustomChaosPositionCallback(value->ToObject()));
12 }
13 private:
14 V8CustomChaosPositionCallback(v8::Local<v8::Object> callback);
15
16 void handleEvent(ChaosGeoposition* position);
17
18 v8::Persistent<v8::Object> callback_;
19
20 };
21
22 } // 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