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

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

Issue 10689106: Renaming Observer to OrientationObserver in DeviceOrientation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 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..d2f7e558d3d496a21c3b7661c78aa8958e4e6ca1 100644
--- a/content/browser/device_orientation/provider_impl.h
+++ b/content/browser/device_orientation/provider_impl.h
@@ -33,8 +33,9 @@ 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 AddOrientationObserver(OrientationObserver* observer) OVERRIDE;
+ virtual void RemoveOrientationObserver(
+ OrientationObserver* observer) OVERRIDE;
private:
virtual ~ProviderImpl();
@@ -70,7 +71,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*> orientation_observers_;
Orientation last_notification_;
bulach 2012/07/04 15:34:19 nit: last_orientation_
// When polling_thread_ is running, members below are only to be used

Powered by Google App Engine
This is Rietveld 408576698