Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: chrome/browser/dom_ui/dom_ui_contents.h

Issue 39173: Location bar should have focus when whosing NTP (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/dom_ui/dom_ui.cc ('k') | chrome/browser/dom_ui/dom_ui_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // Contains code for managing local HTML UI at chrome-ui:// URLs. 5 // Contains code for managing local HTML UI at chrome-ui:// URLs.
6 6
7 #ifndef CHROME_BROWSER_DOM_UI_CONTENTS_H_ 7 #ifndef CHROME_BROWSER_DOM_UI_CONTENTS_H_
8 #define CHROME_BROWSER_DOM_UI_CONTENTS_H_ 8 #define CHROME_BROWSER_DOM_UI_CONTENTS_H_
9 9
10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual bool CreateRenderViewForRenderManager( 99 virtual bool CreateRenderViewForRenderManager(
100 RenderViewHost* render_view_host); 100 RenderViewHost* render_view_host);
101 // Override this method so we can ensure that javascript and image loading 101 // Override this method so we can ensure that javascript and image loading
102 // are always on even for DOMUIHost tabs. 102 // are always on even for DOMUIHost tabs.
103 virtual WebPreferences GetWebkitPrefs(); 103 virtual WebPreferences GetWebkitPrefs();
104 // We don't want a favicon on the new tab page. 104 // We don't want a favicon on the new tab page.
105 virtual bool ShouldDisplayFavIcon(); 105 virtual bool ShouldDisplayFavIcon();
106 // The bookmark bar is always visible on the new tab. 106 // The bookmark bar is always visible on the new tab.
107 virtual bool IsBookmarkBarAlwaysVisible(); 107 virtual bool IsBookmarkBarAlwaysVisible();
108 // When NTP gets the initial focus, focus the URL bar. 108 // When NTP gets the initial focus, focus the URL bar.
109 virtual void SetInitialFocus(bool reverse); 109 virtual void SetInitialFocus();
110 // Whether we want to display the page's URL. 110 // Whether we want to display the page's URL.
111 virtual bool ShouldDisplayURL(); 111 virtual bool ShouldDisplayURL();
112 // Get the title for this page. 112 // Get the title for this page.
113 virtual const string16& GetTitle() const; 113 virtual const string16& GetTitle() const;
114 // We may wish to control what happens when a URL is opened. 114 // We may wish to control what happens when a URL is opened.
115 virtual void RequestOpenURL(const GURL& url, const GURL& referrer, 115 virtual void RequestOpenURL(const GURL& url, const GURL& referrer,
116 WindowOpenDisposition disposition); 116 WindowOpenDisposition disposition);
117 117
118 virtual void RenderViewCreated(RenderViewHost* render_view_host); 118 virtual void RenderViewCreated(RenderViewHost* render_view_host);
119 119
(...skipping 17 matching lines...) Expand all
137 // The DOMUI we own and show. 137 // The DOMUI we own and show.
138 DOMUI* current_ui_; 138 DOMUI* current_ui_;
139 139
140 // URL that our current_ui_ is serving. 140 // URL that our current_ui_ is serving.
141 GURL current_url_; 141 GURL current_url_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(DOMUIContents); 143 DISALLOW_COPY_AND_ASSIGN(DOMUIContents);
144 }; 144 };
145 145
146 #endif // CHROME_BROWSER_DOM_UI_CONTENTS_H_ 146 #endif // CHROME_BROWSER_DOM_UI_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/dom_ui.cc ('k') | chrome/browser/dom_ui/dom_ui_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698