| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" | 5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/about_flags.h" | 8 #include "chrome/browser/about_flags.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/extensions/extension_web_ui.h" | 10 #include "chrome/browser/extensions/extension_web_ui.h" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 return &NewWebUI<WelcomeUI>; | 243 return &NewWebUI<WelcomeUI>; |
| 244 #else | 244 #else |
| 245 // These pages are implemented with native UI elements on Android. | 245 // These pages are implemented with native UI elements on Android. |
| 246 if (url.host() == chrome::kChromeUIDownloadsHost) | 246 if (url.host() == chrome::kChromeUIDownloadsHost) |
| 247 return &NewWebUI<DownloadsUI>; | 247 return &NewWebUI<DownloadsUI>; |
| 248 if (url.host() == chrome::kChromeUIFeedbackHost) | 248 if (url.host() == chrome::kChromeUIFeedbackHost) |
| 249 return &NewWebUI<FeedbackUI>; | 249 return &NewWebUI<FeedbackUI>; |
| 250 if (url.host() == chrome::kChromeUIHelpFrameHost) | 250 if (url.host() == chrome::kChromeUIHelpFrameHost) |
| 251 return &NewWebUI<HelpUI>; | 251 return &NewWebUI<HelpUI>; |
| 252 if (url.host() == chrome::kChromeUISettingsFrameHost) | 252 if (url.host() == chrome::kChromeUISettingsFrameHost) |
| 253 return &NewWebUI<options2::OptionsUI>; | 253 return &NewWebUI<options::OptionsUI>; |
| 254 if (url.host() == chrome::kChromeUISuggestionsInternalsHost) | 254 if (url.host() == chrome::kChromeUISuggestionsInternalsHost) |
| 255 return &NewWebUI<SuggestionsInternalsUI>; | 255 return &NewWebUI<SuggestionsInternalsUI>; |
| 256 // chrome://flags is currently unsupported on Android. | 256 // chrome://flags is currently unsupported on Android. |
| 257 if (url.host() == chrome::kChromeUIFlagsHost) | 257 if (url.host() == chrome::kChromeUIFlagsHost) |
| 258 return &NewWebUI<FlagsUI>; | 258 return &NewWebUI<FlagsUI>; |
| 259 // chrome://inspect isn't supported on Android. Page debugging is handled by a | 259 // chrome://inspect isn't supported on Android. Page debugging is handled by a |
| 260 // remote devtools on the host machine, and other elements (Shared Workers, | 260 // remote devtools on the host machine, and other elements (Shared Workers, |
| 261 // extensions, etc) aren't supported. | 261 // extensions, etc) aren't supported. |
| 262 if (url.host() == chrome::kChromeUIInspectHost) | 262 if (url.host() == chrome::kChromeUIInspectHost) |
| 263 return &NewWebUI<InspectUI>; | 263 return &NewWebUI<InspectUI>; |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 // Android uses the native download manager. | 535 // Android uses the native download manager. |
| 536 if (page_url.host() == chrome::kChromeUIDownloadsHost) | 536 if (page_url.host() == chrome::kChromeUIDownloadsHost) |
| 537 return DownloadsUI::GetFaviconResourceBytes(); | 537 return DownloadsUI::GetFaviconResourceBytes(); |
| 538 | 538 |
| 539 // chrome://flags is currently unsupported on Android. | 539 // chrome://flags is currently unsupported on Android. |
| 540 if (page_url.host() == chrome::kChromeUIFlagsHost) | 540 if (page_url.host() == chrome::kChromeUIFlagsHost) |
| 541 return FlagsUI::GetFaviconResourceBytes(); | 541 return FlagsUI::GetFaviconResourceBytes(); |
| 542 | 542 |
| 543 // Android doesn't use the Options pages. | 543 // Android doesn't use the Options pages. |
| 544 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 544 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
| 545 return options2::OptionsUI::GetFaviconResourceBytes(); | 545 return options::OptionsUI::GetFaviconResourceBytes(); |
| 546 | 546 |
| 547 // Android doesn't use the plugins pages. | 547 // Android doesn't use the plugins pages. |
| 548 if (page_url.host() == chrome::kChromeUIPluginsHost) | 548 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 549 return PluginsUI::GetFaviconResourceBytes(); | 549 return PluginsUI::GetFaviconResourceBytes(); |
| 550 #endif | 550 #endif |
| 551 | 551 |
| 552 return NULL; | 552 return NULL; |
| 553 } | 553 } |
| OLD | NEW |