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

Unified Diff: content/browser/sensors/sensors_provider_impl.cc

Issue 8678019: Move sensors interface into content/public/browser (since it's only used by browser directory). M... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix aura typo Created 9 years, 1 month 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
« no previous file with comments | « content/browser/sensors/sensors_provider_impl.h ('k') | content/common/sensors.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/sensors/sensors_provider_impl.cc
===================================================================
--- content/browser/sensors/sensors_provider_impl.cc (revision 111374)
+++ content/browser/sensors/sensors_provider_impl.cc (working copy)
@@ -6,6 +6,8 @@
#include "base/memory/singleton.h"
+using content::SensorsListener;
+
namespace sensors {
ProviderImpl* ProviderImpl::GetInstance() {
@@ -19,17 +21,17 @@
ProviderImpl::~ProviderImpl() {
}
-void ProviderImpl::AddListener(Listener* listener) {
+void ProviderImpl::AddListener(SensorsListener* listener) {
listeners_->AddObserver(listener);
}
-void ProviderImpl::RemoveListener(Listener* listener) {
+void ProviderImpl::RemoveListener(SensorsListener* listener) {
listeners_->RemoveObserver(listener);
}
void ProviderImpl::ScreenOrientationChanged(
- const ScreenOrientation& change) {
- listeners_->Notify(&Listener::OnScreenOrientationChanged, change);
+ content::ScreenOrientation change) {
+ listeners_->Notify(&SensorsListener::OnScreenOrientationChanged, change);
}
} // namespace sensors
« no previous file with comments | « content/browser/sensors/sensors_provider_impl.h ('k') | content/common/sensors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698