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

Side by Side Diff: chromeos/dbus/fake_nfc_record_client.cc

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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
« no previous file with comments | « chromeos/dbus/fake_nfc_record_client.h ('k') | chromeos/dbus/fake_nfc_tag_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/dbus/fake_nfc_record_client.h" 5 #include "chromeos/dbus/fake_nfc_record_client.h"
6 6
7 #include <stdint.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "chromeos/dbus/dbus_thread_manager.h" 10 #include "chromeos/dbus/dbus_thread_manager.h"
9 #include "chromeos/dbus/fake_nfc_device_client.h" 11 #include "chromeos/dbus/fake_nfc_device_client.h"
10 #include "chromeos/dbus/fake_nfc_tag_client.h" 12 #include "chromeos/dbus/fake_nfc_tag_client.h"
11 #include "third_party/cros_system_api/dbus/service_constants.h" 13 #include "third_party/cros_system_api/dbus/service_constants.h"
12 14
13 namespace chromeos { 15 namespace chromeos {
14 16
15 namespace { 17 namespace {
16 18
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 tag_record_properties_->language.ReplaceValue( 290 tag_record_properties_->language.ReplaceValue(
289 GetStringValue(attributes, nfc_record::kLanguageProperty)); 291 GetStringValue(attributes, nfc_record::kLanguageProperty));
290 tag_record_properties_->representation.ReplaceValue( 292 tag_record_properties_->representation.ReplaceValue(
291 GetStringValue(attributes, nfc_record::kRepresentationProperty)); 293 GetStringValue(attributes, nfc_record::kRepresentationProperty));
292 tag_record_properties_->uri.ReplaceValue( 294 tag_record_properties_->uri.ReplaceValue(
293 GetStringValue(attributes, nfc_record::kUriProperty)); 295 GetStringValue(attributes, nfc_record::kUriProperty));
294 tag_record_properties_->mime_type.ReplaceValue( 296 tag_record_properties_->mime_type.ReplaceValue(
295 GetStringValue(attributes, nfc_record::kMimeTypeProperty)); 297 GetStringValue(attributes, nfc_record::kMimeTypeProperty));
296 tag_record_properties_->action.ReplaceValue( 298 tag_record_properties_->action.ReplaceValue(
297 GetStringValue(attributes, nfc_record::kActionProperty)); 299 GetStringValue(attributes, nfc_record::kActionProperty));
298 tag_record_properties_->size.ReplaceValue(static_cast<uint32>( 300 tag_record_properties_->size.ReplaceValue(static_cast<uint32_t>(
299 GetDoubleValue(attributes, nfc_record::kSizeProperty))); 301 GetDoubleValue(attributes, nfc_record::kSizeProperty)));
300 302
301 SetTagRecordsVisible(false); 303 SetTagRecordsVisible(false);
302 SetTagRecordsVisible(true); 304 SetTagRecordsVisible(true);
303 305
304 return true; 306 return true;
305 } 307 }
306 308
307 void FakeNfcRecordClient::OnPropertyChanged( 309 void FakeNfcRecordClient::OnPropertyChanged(
308 const dbus::ObjectPath& object_path, 310 const dbus::ObjectPath& object_path,
309 const std::string& property_name) { 311 const std::string& property_name) {
310 FOR_EACH_OBSERVER(NfcRecordClient::Observer, observers_, 312 FOR_EACH_OBSERVER(NfcRecordClient::Observer, observers_,
311 RecordPropertyChanged(object_path, property_name)); 313 RecordPropertyChanged(object_path, property_name));
312 } 314 }
313 315
314 void FakeNfcRecordClient::OnPropertiesReceived( 316 void FakeNfcRecordClient::OnPropertiesReceived(
315 const dbus::ObjectPath& object_path) { 317 const dbus::ObjectPath& object_path) {
316 FOR_EACH_OBSERVER(NfcRecordClient::Observer, observers_, 318 FOR_EACH_OBSERVER(NfcRecordClient::Observer, observers_,
317 RecordPropertiesReceived(object_path)); 319 RecordPropertiesReceived(object_path));
318 } 320 }
319 321
320 } // namespace chromeos 322 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_nfc_record_client.h ('k') | chromeos/dbus/fake_nfc_tag_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698