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

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

Issue 7455002: Revert 93094 - Initial sensor event provider for testing views screen rotation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « content/browser/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/provider_impl.cc
===================================================================
--- content/browser/sensors/provider_impl.cc (revision 93096)
+++ content/browser/sensors/provider_impl.cc (working copy)
@@ -1,35 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/logging.h"
-#include "base/memory/singleton.h"
-#include "content/browser/sensors/provider_impl.h"
-
-namespace sensors {
-
-ProviderImpl* ProviderImpl::GetInstance() {
- return Singleton<ProviderImpl>::get();
-}
-
-ProviderImpl::ProviderImpl()
- : listeners_(new ListenerList()) {
-}
-
-ProviderImpl::~ProviderImpl() {
-}
-
-void ProviderImpl::AddListener(Listener* listener) {
- listeners_->AddObserver(listener);
-}
-
-void ProviderImpl::RemoveListener(Listener* listener) {
- listeners_->RemoveObserver(listener);
-}
-
-void ProviderImpl::ScreenOrientationChanged(
- const ScreenOrientation& change) {
- listeners_->Notify(&Listener::OnScreenOrientationChanged, change);
-}
-
-} // namespace sensors
« no previous file with comments | « content/browser/sensors/provider_impl.h ('k') | content/common/sensors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698