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

Unified Diff: device/sensors/data_fetcher_shared_memory_chromeos.cc

Issue 2763333002: Convert device sensors structs from Blink to Chromium naming (Closed)
Patch Set: Rebase Created 3 years, 9 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 | « content/shell/test_runner/test_runner.cc ('k') | device/sensors/data_fetcher_shared_memory_default.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/data_fetcher_shared_memory_chromeos.cc
diff --git a/device/sensors/data_fetcher_shared_memory_chromeos.cc b/device/sensors/data_fetcher_shared_memory_chromeos.cc
index fc57ef1c1030b8ed863fb9757327f92ee764419c..ee12c57255a14abb3c21dd671accfd0c90d7118c 100644
--- a/device/sensors/data_fetcher_shared_memory_chromeos.cc
+++ b/device/sensors/data_fetcher_shared_memory_chromeos.cc
@@ -33,7 +33,8 @@ bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
// implementation fire an all-null event to signal this to blink.
orientation_absolute_buffer_->seqlock.WriteBegin();
orientation_absolute_buffer_->data.absolute = true;
- orientation_absolute_buffer_->data.allAvailableSensorsAreActive = true;
+ orientation_absolute_buffer_->data.all_available_sensors_are_active =
+ true;
orientation_absolute_buffer_->seqlock.WriteEnd();
return false;
}
@@ -54,7 +55,8 @@ bool DataFetcherSharedMemory::Stop(ConsumerType consumer_type) {
case CONSUMER_TYPE_ORIENTATION_ABSOLUTE:
if (orientation_absolute_buffer_) {
orientation_absolute_buffer_->seqlock.WriteBegin();
- orientation_absolute_buffer_->data.allAvailableSensorsAreActive = false;
+ orientation_absolute_buffer_->data.all_available_sensors_are_active =
+ false;
orientation_absolute_buffer_->seqlock.WriteEnd();
orientation_absolute_buffer_ = nullptr;
}
« no previous file with comments | « content/shell/test_runner/test_runner.cc ('k') | device/sensors/data_fetcher_shared_memory_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698