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" |
11 #include "chrome/browser/media/router/issue.h" | 11 #include "chrome/browser/media/router/issue.h" |
12 #include "chrome/browser/ui/webui/media_router/media_cast_mode.h" | 12 #include "chrome/browser/ui/webui/media_router/media_cast_mode.h" |
13 #include "chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h" | 13 #include "chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h" |
14 #include "components/signin/core/browser/account_info.h" | |
14 #include "content/public/browser/web_ui_message_handler.h" | 15 #include "content/public/browser/web_ui_message_handler.h" |
15 #include "ui/gfx/geometry/size.h" | 16 #include "ui/gfx/geometry/size.h" |
16 | 17 |
17 namespace base { | 18 namespace base { |
18 class DictionaryValue; | 19 class DictionaryValue; |
19 class ListValue; | 20 class ListValue; |
20 } // namespace base | 21 } // namespace base |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 class WebUI; | 24 class WebUI; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 // |args| contains additional parameter that varies based on |type|. | 83 // |args| contains additional parameter that varies based on |type|. |
83 // Returns |true| if the action was successfully performed. | 84 // Returns |true| if the action was successfully performed. |
84 bool ActOnIssueType(const IssueAction::Type& type, | 85 bool ActOnIssueType(const IssueAction::Type& type, |
85 const base::DictionaryValue* args); | 86 const base::DictionaryValue* args); |
86 | 87 |
87 // May update the first run flow related properties in the WebUI. This is | 88 // May update the first run flow related properties in the WebUI. This is |
88 // called after the initial data is received to avoid unnecessary work when | 89 // called after the initial data is received to avoid unnecessary work when |
89 // initializing the WebUI. | 90 // initializing the WebUI. |
90 void MaybeUpdateFirstRunFlowData(); | 91 void MaybeUpdateFirstRunFlowData(); |
91 | 92 |
93 virtual AccountInfo GetAccountInfo(); | |
imcheng
2016/02/25 01:52:45
add a comment here and it is marked virtual for te
amp
2016/02/25 03:01:15
Done.
| |
94 | |
92 // Keeps track of whether a command to close the dialog has been issued. | 95 // Keeps track of whether a command to close the dialog has been issued. |
93 bool dialog_closing_; | 96 bool dialog_closing_; |
94 | 97 |
95 MediaRouterUI* media_router_ui_; | 98 MediaRouterUI* media_router_ui_; |
96 | 99 |
97 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); | 100 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUIMessageHandler); |
98 }; | 101 }; |
99 | 102 |
100 } // namespace media_router | 103 } // namespace media_router |
101 | 104 |
102 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL ER_H_ | 105 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEBUI_MESSAGE_HANDL ER_H_ |
OLD | NEW |