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

Side by Side Diff: content/browser/device_orientation/data_fetcher_shared_memory_android.cc

Issue 18572014: Implement Android shared memory data fetcher for Device Motion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-sync-12June-tryASYNC-2-bis-tryRebase-6
Patch Set: fixed comments Created 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 #include "data_fetcher_shared_memory.h"
6
7 #include "base/logging.h"
8 #include "data_fetcher_impl_android.h"
9
10 namespace content {
11
12 DataFetcherSharedMemory::~DataFetcherSharedMemory() {
13 StopFetchingDeviceMotionData();
14 }
15
16 bool DataFetcherSharedMemory::NeedsPolling() {
17 return false;
18 }
19
20 bool DataFetcherSharedMemory::FetchDeviceMotionDataIntoBuffer() {
21 NOTREACHED();
22 return false;
23 }
24
25 bool DataFetcherSharedMemory::StartFetchingDeviceMotionData(
26 DeviceMotionHardwareBuffer* buffer) {
27 device_motion_buffer_ = buffer;
bulach 2013/07/12 16:07:43 nit: as above..
timvolodine 2013/07/12 17:43:56 here it's not really used but it is still needed i
28 return DataFetcherImplAndroid::GetInstance()->
29 StartFetchingDeviceMotionData(buffer);
30 }
31
32 void DataFetcherSharedMemory::StopFetchingDeviceMotionData() {
33 DataFetcherImplAndroid::GetInstance()->StopFetchingDeviceMotionData();
34 }
35
36 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698