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

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

Issue 2724513002: (Not for review) Dummy C++ side Custom Controls implementation (Closed)
Patch Set: . Created 3 years, 10 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 327422dc33e32743d1d4306590178fb86445e463..022476c86bd905a985bc69f498cfda8b94564503 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
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "chrome/browser/media/router/issue.h"
+#include "chrome/browser/media/router/media_status.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 "components/signin/core/browser/account_info.h"
@@ -55,6 +56,9 @@ class MediaRouterWebUIMessageHandler : public content::WebUIMessageHandler {
// the browser window changes.
void UpdateMaxDialogHeight(int height);
+ // Notifies the WebUI with an updated MediaStatus.
+ void UpdateMediaRouteStatus(const MediaStatus& status);
+
void SetWebUIForTest(content::WebUI* webui);
void set_incognito_for_test(bool incognito) { incognito_ = incognito; }
@@ -88,9 +92,18 @@ class MediaRouterWebUIMessageHandler : public content::WebUIMessageHandler {
void OnReportSinkCount(const base::ListValue* args);
void OnReportTimeToClickSink(const base::ListValue* args);
void OnReportTimeToInitialActionClose(const base::ListValue* args);
+ void OnRouteDetailsClosed(const base::ListValue* args);
+ void OnRouteDetailsOpened(const base::ListValue* args);
void OnSearchSinksAndCreateRoute(const base::ListValue* args);
void OnInitialDataReceived(const base::ListValue* args);
+ // Handlers for JavaScript messages to control media routes.
+ void OnPlayRoute(const base::ListValue* args);
+ void OnPauseRoute(const base::ListValue* args);
+ void OnSeekRoute(const base::ListValue* args);
+ void OnSetRouteMute(const base::ListValue* args);
+ void OnSetRouteVolume(const base::ListValue* args);
+
// Performs an action for an Issue of |type|.
// |args| contains additional parameter that varies based on |type|.
// Returns |true| if the action was successfully performed.

Powered by Google App Engine
This is Rietveld 408576698