| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/dom_ui_factory.h" | 5 #include "chrome/browser/dom_ui/dom_ui_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/browser_thread.h" | 9 #include "chrome/browser/browser_thread.h" |
| 10 #include "chrome/browser/dom_ui/bookmarks_ui.h" | 10 #include "chrome/browser/dom_ui/bookmarks_ui.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "chrome/browser/printing/print_dialog_cloud.h" | 33 #include "chrome/browser/printing/print_dialog_cloud.h" |
| 34 #include "chrome/browser/profile.h" | 34 #include "chrome/browser/profile.h" |
| 35 #include "chrome/browser/tab_contents/tab_contents.h" | 35 #include "chrome/browser/tab_contents/tab_contents.h" |
| 36 #include "chrome/common/chrome_switches.h" | 36 #include "chrome/common/chrome_switches.h" |
| 37 #include "chrome/common/extensions/extension_constants.h" | 37 #include "chrome/common/extensions/extension_constants.h" |
| 38 #include "chrome/common/url_constants.h" | 38 #include "chrome/common/url_constants.h" |
| 39 #include "googleurl/src/gurl.h" | 39 #include "googleurl/src/gurl.h" |
| 40 | 40 |
| 41 #if defined(OS_CHROMEOS) | 41 #if defined(OS_CHROMEOS) |
| 42 #include "chrome/browser/chromeos/dom_ui/imageburner_ui.h" | 42 #include "chrome/browser/chromeos/dom_ui/imageburner_ui.h" |
| 43 #include "chrome/browser/chromeos/dom_ui/keyboard_overlay_ui.h" |
| 43 #include "chrome/browser/chromeos/dom_ui/menu_ui.h" | 44 #include "chrome/browser/chromeos/dom_ui/menu_ui.h" |
| 44 #include "chrome/browser/chromeos/dom_ui/mobile_setup_ui.h" | 45 #include "chrome/browser/chromeos/dom_ui/mobile_setup_ui.h" |
| 45 #include "chrome/browser/chromeos/dom_ui/register_page_ui.h" | 46 #include "chrome/browser/chromeos/dom_ui/register_page_ui.h" |
| 46 #include "chrome/browser/chromeos/dom_ui/system_info_ui.h" | 47 #include "chrome/browser/chromeos/dom_ui/system_info_ui.h" |
| 47 #include "chrome/browser/chromeos/dom_ui/wrench_menu_ui.h" | 48 #include "chrome/browser/chromeos/dom_ui/wrench_menu_ui.h" |
| 48 #include "chrome/browser/chromeos/dom_ui/network_menu_ui.h" | 49 #include "chrome/browser/chromeos/dom_ui/network_menu_ui.h" |
| 49 #include "chrome/browser/dom_ui/filebrowse_ui.h" | 50 #include "chrome/browser/dom_ui/filebrowse_ui.h" |
| 50 #include "chrome/browser/dom_ui/mediaplayer_ui.h" | 51 #include "chrome/browser/dom_ui/mediaplayer_ui.h" |
| 51 #endif | 52 #endif |
| 52 | 53 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 return &NewDOMUI<RemotingUI>; | 158 return &NewDOMUI<RemotingUI>; |
| 158 } | 159 } |
| 159 } | 160 } |
| 160 #endif | 161 #endif |
| 161 | 162 |
| 162 #if defined(OS_CHROMEOS) | 163 #if defined(OS_CHROMEOS) |
| 163 if (url.host() == chrome::kChromeUIFileBrowseHost) | 164 if (url.host() == chrome::kChromeUIFileBrowseHost) |
| 164 return &NewDOMUI<FileBrowseUI>; | 165 return &NewDOMUI<FileBrowseUI>; |
| 165 if (url.host() == chrome::kChromeUIImageBurnerHost) | 166 if (url.host() == chrome::kChromeUIImageBurnerHost) |
| 166 return &NewDOMUI<ImageBurnUI>; | 167 return &NewDOMUI<ImageBurnUI>; |
| 168 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
| 169 return &NewDOMUI<KeyboardOverlayUI>; |
| 167 if (url.host() == chrome::kChromeUIMediaplayerHost) | 170 if (url.host() == chrome::kChromeUIMediaplayerHost) |
| 168 return &NewDOMUI<MediaplayerUI>; | 171 return &NewDOMUI<MediaplayerUI>; |
| 169 if (url.host() == chrome::kChromeUIMobileSetupHost) | 172 if (url.host() == chrome::kChromeUIMobileSetupHost) |
| 170 return &NewDOMUI<MobileSetupUI>; | 173 return &NewDOMUI<MobileSetupUI>; |
| 171 if (url.host() == chrome::kChromeUIRegisterPageHost) | 174 if (url.host() == chrome::kChromeUIRegisterPageHost) |
| 172 return &NewDOMUI<RegisterPageUI>; | 175 return &NewDOMUI<RegisterPageUI>; |
| 173 if (url.host() == chrome::kChromeUISettingsHost) | 176 if (url.host() == chrome::kChromeUISettingsHost) |
| 174 return &NewDOMUI<OptionsUI>; | 177 return &NewDOMUI<OptionsUI>; |
| 175 if (url.host() == chrome::kChromeUISlideshowHost) | 178 if (url.host() == chrome::kChromeUISlideshowHost) |
| 176 return &NewDOMUI<SlideshowUI>; | 179 return &NewDOMUI<SlideshowUI>; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 if (page_url.host() == chrome::kChromeUIPluginsHost) | 292 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 290 return PluginsUI::GetFaviconResourceBytes(); | 293 return PluginsUI::GetFaviconResourceBytes(); |
| 291 | 294 |
| 292 #if defined(ENABLE_REMOTING) | 295 #if defined(ENABLE_REMOTING) |
| 293 if (page_url.host() == chrome::kChromeUIRemotingHost) | 296 if (page_url.host() == chrome::kChromeUIRemotingHost) |
| 294 return RemotingUI::GetFaviconResourceBytes(); | 297 return RemotingUI::GetFaviconResourceBytes(); |
| 295 #endif | 298 #endif |
| 296 | 299 |
| 297 return NULL; | 300 return NULL; |
| 298 } | 301 } |
| OLD | NEW |