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

Unified Diff: chrome/browser/media/router/media_status.cc

Issue 2727123002: [Media Router] Custom Controls 1 - Add MediaStatus, MediaRouteController, and mojo interfaces (Closed)
Patch Set: Change comment 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
Index: chrome/browser/media/router/media_status.cc
diff --git a/chrome/browser/media/router/media_status.cc b/chrome/browser/media/router/media_status.cc
new file mode 100644
index 0000000000000000000000000000000000000000..48615078f707622afbc8277cde08537b4e498aff
--- /dev/null
+++ b/chrome/browser/media/router/media_status.cc
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/media/router/media_status.h"
+
+namespace media_router {
+
+MediaStatus::MediaStatus() = default;
+
+MediaStatus::MediaStatus(const MediaStatus& other) = default;
+
+MediaStatus::~MediaStatus() = default;
+
+MediaStatus& MediaStatus::operator=(const MediaStatus& other) = default;
+
+bool MediaStatus::operator==(const MediaStatus& other) const {
+ return title == other.title && description == other.description &&
+ can_play_pause == other.can_play_pause && can_mute == other.can_mute &&
+ can_set_volume == other.can_set_volume && can_seek == other.can_seek &&
+ is_paused == other.is_paused && is_muted == other.is_muted &&
+ volume == other.volume && duration == other.duration &&
+ current_time == other.current_time;
+}
+
+} // namespace media_router

Powered by Google App Engine
This is Rietveld 408576698