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