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

Unified Diff: ash/accelerometer/accelerometer_observer.h

Issue 500613003: Use standardized and extendable accelerometer update type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge and remove unused Vector3dF reference. Created 6 years, 3 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: ash/accelerometer/accelerometer_observer.h
diff --git a/ash/accelerometer/accelerometer_observer.h b/ash/accelerometer/accelerometer_observer.h
index 28ee218dc18c056945d0ff0a707c6fa4c132f9e2..ddfaab13c2ccfe5f5819619454c1f05dc853178b 100644
--- a/ash/accelerometer/accelerometer_observer.h
+++ b/ash/accelerometer/accelerometer_observer.h
@@ -6,20 +6,17 @@
#define ASH_ACCELEROMETER_ACCELEROMETER_OBSERVER_H_
#include "ash/ash_export.h"
-
-namespace gfx {
-class Vector3dF;
-}
+#include "ui/accelerometer/accelerometer_types.h"
namespace ash {
// The interface for classes which observe accelerometer updates.
class ASH_EXPORT AccelerometerObserver {
public:
- // Invoked when an accelerometer reading has been taken. The |base| and |lid|
- // accelerometer readings are in G's.
- virtual void OnAccelerometerUpdated(const gfx::Vector3dF& base,
- const gfx::Vector3dF& lid) = 0;
+ // Invoked when an accelerometer reading has been taken. The |update| can
+ // contain readings from one or more AccelerometerSources.
+ virtual void OnAccelerometerUpdated(
+ const ui::AccelerometerUpdate& update) = 0;
protected:
virtual ~AccelerometerObserver() {}
« no previous file with comments | « ash/accelerometer/accelerometer_controller.cc ('k') | ash/ash.gyp » ('j') | chromeos/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698