| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDLER_
H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDLER_
H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDLER_
H_ | 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDLER_
H_ |
| 7 | 7 |
| 8 #include <unordered_map> | 8 #include <unordered_map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void OnReportClickedSinkIndex(const base::ListValue* args); | 98 void OnReportClickedSinkIndex(const base::ListValue* args); |
| 99 void OnReportFilter(const base::ListValue* args); | 99 void OnReportFilter(const base::ListValue* args); |
| 100 void OnReportInitialAction(const base::ListValue* args); | 100 void OnReportInitialAction(const base::ListValue* args); |
| 101 void OnReportInitialState(const base::ListValue* args); | 101 void OnReportInitialState(const base::ListValue* args); |
| 102 void OnReportNavigateToView(const base::ListValue* args); | 102 void OnReportNavigateToView(const base::ListValue* args); |
| 103 void OnReportRouteCreation(const base::ListValue* args); | 103 void OnReportRouteCreation(const base::ListValue* args); |
| 104 void OnReportRouteCreationOutcome(const base::ListValue* args); | 104 void OnReportRouteCreationOutcome(const base::ListValue* args); |
| 105 void OnReportSelectedCastMode(const base::ListValue* args); | 105 void OnReportSelectedCastMode(const base::ListValue* args); |
| 106 void OnReportSinkCount(const base::ListValue* args); | 106 void OnReportSinkCount(const base::ListValue* args); |
| 107 void OnReportTimeToClickSink(const base::ListValue* args); | 107 void OnReportTimeToClickSink(const base::ListValue* args); |
| 108 void OnReportWebUIRouteControllerLoaded(const base::ListValue* args); |
| 108 void OnReportTimeToInitialActionClose(const base::ListValue* args); | 109 void OnReportTimeToInitialActionClose(const base::ListValue* args); |
| 109 void OnMediaControllerAvailable(const base::ListValue* args); | 110 void OnMediaControllerAvailable(const base::ListValue* args); |
| 110 void OnMediaControllerClosed(const base::ListValue* args); | 111 void OnMediaControllerClosed(const base::ListValue* args); |
| 111 void OnSearchSinksAndCreateRoute(const base::ListValue* args); | 112 void OnSearchSinksAndCreateRoute(const base::ListValue* args); |
| 112 void OnInitialDataReceived(const base::ListValue* args); | 113 void OnInitialDataReceived(const base::ListValue* args); |
| 113 | 114 |
| 114 // Handlers for JavaScript messages to control the media. | 115 // Handlers for JavaScript messages to control the media. |
| 115 void OnPlayCurrentMedia(const base::ListValue* args); | 116 void OnPlayCurrentMedia(const base::ListValue* args); |
| 116 void OnPauseCurrentMedia(const base::ListValue* args); | 117 void OnPauseCurrentMedia(const base::ListValue* args); |
| 117 void OnSeekCurrentMedia(const base::ListValue* args); | 118 void OnSeekCurrentMedia(const base::ListValue* args); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 base::Optional<MediaStatus> current_media_status_; | 160 base::Optional<MediaStatus> current_media_status_; |
| 160 | 161 |
| 161 MediaRouterUI* media_router_ui_; | 162 MediaRouterUI* media_router_ui_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); | 164 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace media_router | 167 } // namespace media_router |
| 167 | 168 |
| 168 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL
ER_H_ | 169 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL
ER_H_ |
| OLD | NEW |