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

Unified Diff: content/browser/device_orientation/provider_impl.h

Issue 10698046: Implements part of Device Motion in the Renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/device_orientation/provider_impl.h
diff --git a/content/browser/device_orientation/provider_impl.h b/content/browser/device_orientation/provider_impl.h
index c7c12eb4dce6651e6dc315caa3a91e08a239ffd5..49e949b798e2938d243a9307075c4c8c9d9d24eb 100644
--- a/content/browser/device_orientation/provider_impl.h
+++ b/content/browser/device_orientation/provider_impl.h
@@ -33,8 +33,15 @@ class ProviderImpl : public Provider {
CONTENT_EXPORT ProviderImpl(const DataFetcherFactory factories[]);
// From Provider.
- virtual void AddObserver(Observer* observer) OVERRIDE;
- virtual void RemoveObserver(Observer* observer) OVERRIDE;
+ virtual void AddMotionObserver(MotionObserver* observer) OVERRIDE {
+ // TODO(aousterh): implement this
+ }
+ virtual void AddOrientationObserver(OrientationObserver* observer) OVERRIDE;
+ virtual void RemoveMotionObserver(MotionObserver* observer) OVERRIDE {
+ // TODO(aousterh): implement this
+ }
+ virtual void RemoveOrientationObserver(
+ OrientationObserver* observer) OVERRIDE;
bulach 2012/07/02 12:47:56 nit: indent +2
aousterh 2012/07/04 13:31:55 Done.
private:
virtual ~ProviderImpl();
@@ -70,7 +77,7 @@ class ProviderImpl : public Provider {
// Members below are only to be used from the creator_loop_.
std::vector<DataFetcherFactory> factories_;
- std::set<Observer*> observers_;
+ std::set<OrientationObserver*> observers_;
Orientation last_notification_;
// When polling_thread_ is running, members below are only to be used

Powered by Google App Engine
This is Rietveld 408576698