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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 void ClearIssue(); | 52 void ClearIssue(); |
53 | 53 |
54 // Updates the maximum dialog height to allow the WebUI properly scale when | 54 // Updates the maximum dialog height to allow the WebUI properly scale when |
55 // the browser window changes. | 55 // the browser window changes. |
56 void UpdateMaxDialogHeight(int height); | 56 void UpdateMaxDialogHeight(int height); |
57 | 57 |
58 void SetWebUIForTest(content::WebUI* webui); | 58 void SetWebUIForTest(content::WebUI* webui); |
59 void set_incognito_for_test(bool incognito) { incognito_ = incognito; } | 59 void set_incognito_for_test(bool incognito) { incognito_ = incognito; } |
60 | 60 |
61 private: | 61 private: |
| 62 FRIEND_TEST_ALL_PREFIXES(MediaRouterWebUIMessageHandlerTest, |
| 63 RecordCastModeSelection); |
| 64 FRIEND_TEST_ALL_PREFIXES(MediaRouterWebUIMessageHandlerTest, |
| 65 RetrieveCastModeSelection); |
| 66 |
62 // WebUIMessageHandler implementation. | 67 // WebUIMessageHandler implementation. |
63 void RegisterMessages() override; | 68 void RegisterMessages() override; |
64 | 69 |
65 // Handlers for JavaScript messages. | 70 // Handlers for JavaScript messages. |
66 // See media_router_ui_interface.js for documentation on parameters. | 71 // See media_router_ui_interface.js for documentation on parameters. |
67 void OnRequestInitialData(const base::ListValue* args); | 72 void OnRequestInitialData(const base::ListValue* args); |
68 void OnCreateRoute(const base::ListValue* args); | 73 void OnCreateRoute(const base::ListValue* args); |
69 void OnAcknowledgeFirstRunFlow(const base::ListValue* args); | 74 void OnAcknowledgeFirstRunFlow(const base::ListValue* args); |
70 void OnActOnIssue(const base::ListValue* args); | 75 void OnActOnIssue(const base::ListValue* args); |
71 void OnCloseRoute(const base::ListValue* args); | 76 void OnCloseRoute(const base::ListValue* args); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 bool dialog_closing_; | 129 bool dialog_closing_; |
125 | 130 |
126 MediaRouterUI* media_router_ui_; | 131 MediaRouterUI* media_router_ui_; |
127 | 132 |
128 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); | 133 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); |
129 }; | 134 }; |
130 | 135 |
131 } // namespace media_router | 136 } // namespace media_router |
132 | 137 |
133 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL
ER_H_ | 138 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL
ER_H_ |
OLD | NEW |