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

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

Issue 3136008: Implement device_orientation::Provider. (Closed)
Patch Set: Patch Created 10 years, 4 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 | « no previous file | chrome/browser/device_orientation/orientation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/device_orientation/data_fetcher.h
diff --git a/chrome/browser/device_orientation/data_fetcher.h b/chrome/browser/device_orientation/data_fetcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a599b7809600f9c8676076712b6eb0deabc325a
--- /dev/null
+++ b/chrome/browser/device_orientation/data_fetcher.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2010 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.
+
+#ifndef CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_H_
+#define CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_H_
+
+namespace device_orientation {
+
+class Orientation;
+
+class DataFetcher {
+ public:
+ virtual ~DataFetcher() {}
+ virtual bool GetOrientation(Orientation*) = 0;
+ virtual int MinSamplingIntervalMs() const { return 0; }
+};
+
+} // namespace device_orientation
+
+#endif // CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_H_
« no previous file with comments | « no previous file | chrome/browser/device_orientation/orientation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698