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

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

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.cc
diff --git a/content/browser/device_orientation/provider_impl.cc b/content/browser/device_orientation/provider_impl.cc
index b27421c4a513e14c46fce48d0fda95a881c399af..df6cd9ecef296f8ed236ccea5ec9a4d73c080195 100644
--- a/content/browser/device_orientation/provider_impl.cc
+++ b/content/browser/device_orientation/provider_impl.cc
@@ -26,7 +26,7 @@ ProviderImpl::ProviderImpl(const DataFetcherFactory factories[])
ProviderImpl::~ProviderImpl() {
}
-void ProviderImpl::AddObserver(Observer* observer) {
+void ProviderImpl::AddOrientationObserver(OrientationObserver* observer) {
DCHECK(MessageLoop::current() == creator_loop_);
observers_.insert(observer);
@@ -36,7 +36,7 @@ void ProviderImpl::AddObserver(Observer* observer) {
observer->OnOrientationUpdate(last_notification_);
}
-void ProviderImpl::RemoveObserver(Observer* observer) {
+void ProviderImpl::RemoveOrientationObserver(OrientationObserver* observer) {
DCHECK(MessageLoop::current() == creator_loop_);
observers_.erase(observer);
@@ -111,7 +111,7 @@ void ProviderImpl::DoNotify(const Orientation& orientation) {
last_notification_ = orientation;
- typedef std::set<Observer*>::const_iterator Iterator;
+ typedef std::set<OrientationObserver*>::const_iterator Iterator;
for (Iterator i = observers_.begin(), e = observers_.end(); i != e; ++i)
(*i)->OnOrientationUpdate(orientation);

Powered by Google App Engine
This is Rietveld 408576698