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

Side by Side Diff: chromeos/audio/cras_audio_handler.h

Issue 1380103003: Store audio device's active state in preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix string format Created 4 years, 11 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
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler_stub.cc ('k') | chromeos/audio/cras_audio_handler.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 5 #ifndef CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
6 #define CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 6 #define CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <queue> 10 #include <queue>
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 // audio nodes unplugged. 284 // audio nodes unplugged.
285 bool NonActiveDeviceUnplugged(size_t old_devices_size, 285 bool NonActiveDeviceUnplugged(size_t old_devices_size,
286 size_t new_device_size, 286 size_t new_device_size,
287 uint64_t current_active_node); 287 uint64_t current_active_node);
288 288
289 // Returns true if there is any device change for for input or output, 289 // Returns true if there is any device change for for input or output,
290 // specified by |is_input|. 290 // specified by |is_input|.
291 // The new discovered nodes are returned in |new_discovered|. 291 // The new discovered nodes are returned in |new_discovered|.
292 bool HasDeviceChange(const AudioNodeList& new_nodes, 292 bool HasDeviceChange(const AudioNodeList& new_nodes,
293 bool is_input, 293 bool is_input,
294 AudioNodeList* new_discovered); 294 AudioDevicePriorityQueue* new_discovered);
295 295
296 // Handles dbus callback for GetNodes. 296 // Handles dbus callback for GetNodes.
297 void HandleGetNodes(const chromeos::AudioNodeList& node_list, bool success); 297 void HandleGetNodes(const chromeos::AudioNodeList& node_list, bool success);
298 298
299 // Handles the dbus error callback. 299 // Handles the dbus error callback.
300 void HandleGetNodesError(const std::string& error_name, 300 void HandleGetNodesError(const std::string& error_name,
301 const std::string& error_msg); 301 const std::string& error_msg);
302 302
303 // Adds an active node. 303 // Adds an active node.
304 // If there is no active node, |node_id| will be switched to become the 304 // If there is no active node, |node_id| will be switched to become the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 bool hdmi_rediscovering_; 363 bool hdmi_rediscovering_;
364 364
365 base::WeakPtrFactory<CrasAudioHandler> weak_ptr_factory_; 365 base::WeakPtrFactory<CrasAudioHandler> weak_ptr_factory_;
366 366
367 DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler); 367 DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler);
368 }; 368 };
369 369
370 } // namespace chromeos 370 } // namespace chromeos
371 371
372 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 372 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler_stub.cc ('k') | chromeos/audio/cras_audio_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698