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

Side by Side Diff: content/browser/sensors/provider.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_SENSORS_PROVIDER_H_
6 #define CONTENT_BROWSER_SENSORS_PROVIDER_H_
7 #pragma once
8
9 #include "content/common/sensors_listener.h"
10
11 namespace sensors {
12
13 class Provider {
14 public:
15 static Provider* GetInstance();
16
17 virtual Connection* Open(Listener* listener) = 0;
18
19 virtual void FireSensorChanged(Channel channel, const std::string& data) = 0;
20
21 protected:
22 Provider() {};
23 virtual ~Provider() {};
24
25 DISALLOW_COPY_AND_ASSIGN(Provider);
26 };
27
28 } // namespace sensors
29
30 #endif // CONTENT_BROWSER_SENSORS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698