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

Unified Diff: chrome/browser/media/router/media_sink.h

Issue 1273423004: Shows a launch spinner next to a sink once it is selected to create a route. The launch spinner sur… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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_sink.h
diff --git a/chrome/browser/media/router/media_sink.h b/chrome/browser/media/router/media_sink.h
index face195ba403e1cae722a04b0317ffe7f766bfd2..0b42af21dfd17f7d747329b009ffaac481c48aba 100644
--- a/chrome/browser/media/router/media_sink.h
+++ b/chrome/browser/media/router/media_sink.h
@@ -14,12 +14,18 @@ class MediaSink {
public:
using Id = std::string;
- MediaSink(const MediaSink::Id& sink_id, const std::string& name);
+ MediaSink(const MediaSink::Id& sink_id,
+ const std::string& name);
+
+ MediaSink(const MediaSink::Id& sink_id,
+ const std::string& name,
+ bool is_launching);
~MediaSink();
const MediaSink::Id& id() const { return sink_id_; }
const std::string& name() const { return name_; }
+ bool is_launching() const { return is_launching_; }
bool Equals(const MediaSink& other) const;
bool Empty() const;
@@ -30,6 +36,8 @@ class MediaSink {
// Descriptive name of the MediaSink.
// Optional, can use an empty string if no sink name is available.
std::string name_;
+ // True when the media router is creating a route to this sink.
+ bool is_launching_;
};
} // namespace media_router
« no previous file with comments | « chrome/browser/media/router/media_router_type_converters_unittest.cc ('k') | chrome/browser/media/router/media_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698