| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void OnReportSelectedCastMode(const base::ListValue* args); | 83 void OnReportSelectedCastMode(const base::ListValue* args); |
| 84 void OnReportSinkCount(const base::ListValue* args); | 84 void OnReportSinkCount(const base::ListValue* args); |
| 85 void OnReportTimeToClickSink(const base::ListValue* args); | 85 void OnReportTimeToClickSink(const base::ListValue* args); |
| 86 void OnReportTimeToInitialActionClose(const base::ListValue* args); | 86 void OnReportTimeToInitialActionClose(const base::ListValue* args); |
| 87 void OnSearchSinksAndCreateRoute(const base::ListValue* args); | 87 void OnSearchSinksAndCreateRoute(const base::ListValue* args); |
| 88 void OnInitialDataReceived(const base::ListValue* args); | 88 void OnInitialDataReceived(const base::ListValue* args); |
| 89 | 89 |
| 90 // Performs an action for an Issue of |type|. | 90 // Performs an action for an Issue of |type|. |
| 91 // |args| contains additional parameter that varies based on |type|. | 91 // |args| contains additional parameter that varies based on |type|. |
| 92 // Returns |true| if the action was successfully performed. | 92 // Returns |true| if the action was successfully performed. |
| 93 bool ActOnIssueType(const IssueAction::Type& type, | 93 bool ActOnIssueType(IssueInfo::Action type, |
| 94 const base::DictionaryValue* args); | 94 const base::DictionaryValue* args); |
| 95 | 95 |
| 96 // May update the first run flow related properties in the WebUI. This is | 96 // May update the first run flow related properties in the WebUI. This is |
| 97 // called after the initial data is received to avoid unnecessary work when | 97 // called after the initial data is received to avoid unnecessary work when |
| 98 // initializing the WebUI. | 98 // initializing the WebUI. |
| 99 void MaybeUpdateFirstRunFlowData(); | 99 void MaybeUpdateFirstRunFlowData(); |
| 100 | 100 |
| 101 // Returns the current cast mode for the route with ID |route_id| or -1 if the | 101 // Returns the current cast mode for the route with ID |route_id| or -1 if the |
| 102 // route has no current cast mode. | 102 // route has no current cast mode. |
| 103 int CurrentCastModeForRouteId( | 103 int CurrentCastModeForRouteId( |
| (...skipping 21 matching lines...) Expand all Loading... |
| 125 bool dialog_closing_; | 125 bool dialog_closing_; |
| 126 | 126 |
| 127 MediaRouterUI* media_router_ui_; | 127 MediaRouterUI* media_router_ui_; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); | 129 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace media_router | 132 } // namespace media_router |
| 133 | 133 |
| 134 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL
ER_H_ | 134 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL
ER_H_ |
| OLD | NEW |