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

Unified Diff: content/browser/device_orientation/data_fetcher.h

Issue 10755002: Refactors DeviceOrientation to make it more extensible (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
Index: content/browser/device_orientation/data_fetcher.h
diff --git a/content/browser/device_orientation/data_fetcher.h b/content/browser/device_orientation/data_fetcher.h
index 8e69f1f22e3f68a5d96c65896e8ebc122549d2a7..72017169396e3d7a3cc55224775ab6bcc2a77b65 100644
--- a/content/browser/device_orientation/data_fetcher.h
+++ b/content/browser/device_orientation/data_fetcher.h
@@ -7,16 +7,17 @@
namespace device_orientation {
-class Orientation;
+class DeviceData;
class DataFetcher {
public:
virtual ~DataFetcher() {}
- // Returns false if there was a fatal error getting the orientation.
- // Returns true otherwise. If the fetcher has orientation data available
- // it will fill it in, otherwise the argument will be unaltered.
- virtual bool GetOrientation(Orientation*) = 0;
+ // Returns false if there was a fatal error getting the device data or if
+ // this fetcher can never provide this type of data. Returns true otherwise.
+ // If the fetcher has data available it will fill it in, otherwise the
+ // argument will be unaltered.
+ virtual bool GetDeviceData(DeviceData* device_data) = 0;
};
} // namespace device_orientation

Powered by Google App Engine
This is Rietveld 408576698