diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 16:25:09 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 16:25:09 +0000 |
commit | 5ced5eb46be9e6c2d2b72a421d930cee6d7fcf89 (patch) | |
tree | ffccdfbb0ccd8a7f2663d0144e7684c8ffee0194 /chrome/browser/tab_contents_factory.cc | |
parent | f18953d3c2a4eae2bc33b1eecce96e28f0815a64 (diff) | |
download | chromium_src-5ced5eb46be9e6c2d2b72a421d930cee6d7fcf89.zip chromium_src-5ced5eb46be9e6c2d2b72a421d930cee6d7fcf89.tar.gz chromium_src-5ced5eb46be9e6c2d2b72a421d930cee6d7fcf89.tar.bz2 |
Initial cleanup and refactoring to make debugger UI use DHTML and get rid of the last of its native UI. This is done using a DOMUIHost subclass and a new TabContents type.
This checkin also fixes a few minor issues:
* hitting the keyboard accelerator brings the current debugger window to front
* text is grayed out when in "running" mode rather than "paused"
* up/down arrows have command-line history (transient)
* some text used to get eaten when you first bring up the window ("attached to <tabname>"), this is now handled
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents_factory.cc')
-rw-r--r-- | chrome/browser/tab_contents_factory.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents_factory.cc b/chrome/browser/tab_contents_factory.cc index 4fbbf07..641826e 100644 --- a/chrome/browser/tab_contents_factory.cc +++ b/chrome/browser/tab_contents_factory.cc @@ -39,6 +39,7 @@ #include "chrome/browser/network_status_view.h" #include "chrome/browser/profile.h" #include "chrome/browser/render_process_host.h" +#include "chrome/browser/debugger/debugger_contents.h" #include "chrome/browser/tab_contents_factory.h" #include "chrome/browser/view_source_contents.h" #include "chrome/browser/web_contents.h" @@ -85,6 +86,9 @@ TabContents* TabContents::CreateWithType(TabContentsType type, case TAB_CONTENTS_ABOUT_UI: contents = new BrowserAboutHandler(profile, instance, NULL); break; + case TAB_CONTENTS_DEBUGGER: + contents = new DebuggerContents(profile, instance); + break; default: if (g_extra_types) { TabContentsFactoryMap::const_iterator it = g_extra_types->find(type); @@ -126,6 +130,9 @@ TabContentsType TabContents::TypeForURL(GURL* url) { if (HtmlDialogContents::IsHtmlDialogUrl(*url)) return TAB_CONTENTS_HTML_DIALOG; + if (DebuggerContents::IsDebuggerUrl(*url)) + return TAB_CONTENTS_DEBUGGER; + if (url->SchemeIs("view-source")) { // Load the inner URL instead, but render it using a ViewSourceContents. *url = GURL(url->path()); |