| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 // Android uses the native download manager. | 536 // Android uses the native download manager. |
| 537 if (page_url.host() == chrome::kChromeUIDownloadsHost) | 537 if (page_url.host() == chrome::kChromeUIDownloadsHost) |
| 538 return DownloadsUI::GetFaviconResourceBytes(); | 538 return DownloadsUI::GetFaviconResourceBytes(); |
| 539 | 539 |
| 540 // chrome://flags is currently unsupported on Android. | 540 // chrome://flags is currently unsupported on Android. |
| 541 if (page_url.host() == chrome::kChromeUIFlagsHost) | 541 if (page_url.host() == chrome::kChromeUIFlagsHost) |
| 542 return FlagsUI::GetFaviconResourceBytes(); | 542 return FlagsUI::GetFaviconResourceBytes(); |
| 543 | 543 |
| 544 // Android doesn't use the Options pages. | 544 // Android doesn't use the Options pages. |
| 545 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 545 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
| 546 return options2::OptionsUI::GetFaviconResourceBytes(); | 546 return options::OptionsUI::GetFaviconResourceBytes(); |
| 547 | 547 |
| 548 // Android doesn't use the plugins pages. | 548 // Android doesn't use the plugins pages. |
| 549 if (page_url.host() == chrome::kChromeUIPluginsHost) | 549 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 550 return PluginsUI::GetFaviconResourceBytes(); | 550 return PluginsUI::GetFaviconResourceBytes(); |
| 551 #endif | 551 #endif |
| 552 | 552 |
| 553 return NULL; | 553 return NULL; |
| 554 } | 554 } |
| OLD | NEW |