summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/dom_ui.cc
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 04:07:18 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 04:07:18 +0000
commit8d2b6c3e969cdbb83b0cf23493e527869ff25e9e (patch)
tree5b61f36327c9ad3e01783ea5244b394738662448 /chrome/browser/dom_ui/dom_ui.cc
parent347141f37842c06c3b832b9721f484c4f278b159 (diff)
downloadchromium_src-8d2b6c3e969cdbb83b0cf23493e527869ff25e9e.zip
chromium_src-8d2b6c3e969cdbb83b0cf23493e527869ff25e9e.tar.gz
chromium_src-8d2b6c3e969cdbb83b0cf23493e527869ff25e9e.tar.bz2
Make New Tab Page work correctly in incognito mode (8294)
Add a workaround to force the New Tab Page title to 'New Tab' (8282) Make DOMUI Pages get focus correctly (8271) Please also sanity-check DOMUI/DOMUIContents integration. BUG=8294,8282,8271 Review URL: http://codereview.chromium.org/39057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10862 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/dom_ui.cc')
-rw-r--r--chrome/browser/dom_ui/dom_ui.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/dom_ui.cc b/chrome/browser/dom_ui/dom_ui.cc
index b0efcad..9b8b069 100644
--- a/chrome/browser/dom_ui/dom_ui.cc
+++ b/chrome/browser/dom_ui/dom_ui.cc
@@ -79,6 +79,10 @@ void DOMUI::RegisterMessageCallback(const std::string &message,
message_callbacks_.insert(std::make_pair(message, callback));
}
+void DOMUI::SetInitialFocus(bool reverse) {
+ get_contents()->render_view_host()->SetInitialFocus(reverse);
+}
+
void DOMUI::RequestOpenURL(const GURL& url,
const GURL& /* referer */,
WindowOpenDisposition disposition) {