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

Unified Diff: content/browser/sensors/sensors_provider.h

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
Index: content/browser/sensors/sensors_provider.h
===================================================================
--- content/browser/sensors/sensors_provider.h (revision 111374)
+++ content/browser/sensors/sensors_provider.h (working copy)
@@ -8,7 +8,7 @@
#include "base/basictypes.h"
#include "content/common/content_export.h"
-#include "content/common/sensors_listener.h"
+#include "content/public/browser/sensors_listener.h"
// The sensors API will unify various types of sensor data into a set of
// channels, each of which provides change events and periodic updates.
@@ -32,19 +32,20 @@
//
// This method may be called in any thread. Callbacks on a listener will
// always be executed in the thread which added that listener.
- virtual void AddListener(Listener* listener) = 0;
+ virtual void AddListener(content::SensorsListener* listener) = 0;
// Removes a sensor listener.
//
// This method must be called in the same thread which added the listener.
// If the listener is not currently subscribed, this method may be called in
// any thread.
- virtual void RemoveListener(Listener* listener) = 0;
+ virtual void RemoveListener(content::SensorsListener* listener) = 0;
// Broadcasts a change to the coarse screen orientation.
//
// This method may be called in any thread.
- virtual void ScreenOrientationChanged(const ScreenOrientation& change) = 0;
+ virtual void ScreenOrientationChanged(
+ content::ScreenOrientation change) = 0;
protected:
Provider();
« no previous file with comments | « chrome/browser/ui/views/aura/screen_orientation_listener.cc ('k') | content/browser/sensors/sensors_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698