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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/Coordinates.h ('k') | Source/modules/geolocation/Geoposition.h » ('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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class LocalFrame; 46 class LocalFrame;
47 class GeolocationController; 47 class GeolocationController;
48 class GeolocationError; 48 class GeolocationError;
49 class GeolocationPosition; 49 class GeolocationPosition;
50 class ExecutionContext; 50 class ExecutionContext;
51 51
52 class Geolocation FINAL 52 class Geolocation FINAL
53 : public GarbageCollectedFinalized<Geolocation> 53 : public GarbageCollectedFinalized<Geolocation>
54 , public ScriptWrappable 54 , public ScriptWrappable
55 , public ActiveDOMObject { 55 , public ActiveDOMObject {
56 DEFINE_WRAPPERTYPEINFO();
56 public: 57 public:
57 static Geolocation* create(ExecutionContext*); 58 static Geolocation* create(ExecutionContext*);
58 virtual ~Geolocation(); 59 virtual ~Geolocation();
59 void trace(Visitor*); 60 void trace(Visitor*);
60 61
61 virtual void stop() OVERRIDE; 62 virtual void stop() OVERRIDE;
62 Document* document() const; 63 Document* document() const;
63 LocalFrame* frame() const; 64 LocalFrame* frame() const;
64 65
65 // 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
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 }; 180 };
180 181
181 Permission m_geolocationPermission; 182 Permission m_geolocationPermission;
182 183
183 GeoNotifierSet m_requestsAwaitingCachedPosition; 184 GeoNotifierSet m_requestsAwaitingCachedPosition;
184 }; 185 };
185 186
186 } // namespace blink 187 } // namespace blink
187 188
188 #endif // Geolocation_h 189 #endif // Geolocation_h
OLDNEW
« no previous file with comments | « Source/modules/geolocation/Coordinates.h ('k') | Source/modules/geolocation/Geoposition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698