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

Unified Diff: chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h

Issue 1139203003: [Media Router] MediaRouterUI + WebUI handler implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 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/ui/webui/media_router/media_router_webui_message_handler.h
diff --git a/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h b/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h
index 2ad161fec14240e36e07e2a903ca3a2ee404bbb8..f6e78e6e902fe8faddf4e50b54ea579c780c980b 100644
--- a/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h
+++ b/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h
@@ -5,7 +5,11 @@
#ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDLER_H_
+#include <vector>
+
#include "base/macros.h"
+#include "chrome/browser/ui/webui/media_router/media_cast_mode.h"
+#include "chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h"
#include "content/public/browser/web_ui_message_handler.h"
namespace base {
@@ -14,6 +18,8 @@ class ListValue;
namespace media_router {
+class Issue;
+class MediaRoute;
class MediaRouterUI;
// The handler for Javascript messages related to the media router dialog.
@@ -25,6 +31,22 @@ class MediaRouterWebUIMessageHandler : public content::WebUIMessageHandler {
// WebUIMessageHandler implementation.
void RegisterMessages() override;
+ // Updates the list of sinks in the dialog.
Wez 2015/05/20 17:51:47 None of these comments actually add anything; they
imcheng (use chromium acct) 2015/05/20 22:01:14 Done.
+ void UpdateSinks(const std::vector<MediaSinkWithCastModes>& sinks);
+
+ // Updates the list of routes in the dialog.
+ void UpdateRoutes(const std::vector<MediaRoute>& routes);
+
+ // Updates the cast modes in the dialog.
+ void UpdateCastModes(const CastModeSet& cast_modes,
+ const std::string& source_host);
+
+ // Adds a new route to the dialog.
+ void AddRoute(const MediaRoute& route);
+
+ // Updates the issue to show in the dialog.
+ void UpdateIssue(const Issue* issue);
Wez 2015/05/20 17:51:47 Why const Issue* rather than const Issue& ?
imcheng (use chromium acct) 2015/05/20 22:01:14 nullptr is used to indicate there are no more issu
+
private:
// Handlers for JavaScript messages.
void OnGetInitialSettings(const base::ListValue* args);

Powered by Google App Engine
This is Rietveld 408576698