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

Unified Diff: chrome/browser/dom_ui/dom_ui.h

Issue 28104: Enable history and downloads by default, port NewTabUI from DOMUIHost to DOMU... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/debugger/debugger_contents.cc ('k') | chrome/browser/dom_ui/dom_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/dom_ui.h
===================================================================
--- chrome/browser/dom_ui/dom_ui.h (revision 10343)
+++ chrome/browser/dom_ui/dom_ui.h (working copy)
@@ -42,6 +42,20 @@
const Value& arg1,
const Value& arg2);
+ // Overriddable control over the contents.
+ // Favicon should be displayed normally.
+ virtual bool ShouldDisplayFavIcon() { return true; }
+ // No special bookmark bar behavior
+ virtual bool IsBookmarkBarAlwaysVisible() { return false; }
+ // When NTP gets the initial focus, focus the URL bar.
+ virtual void SetInitialFocus() {};
+ // Whether we want to display the page's URL.
+ virtual bool ShouldDisplayURL() { return true; }
+ // Hide the referrer.
+ virtual void RequestOpenURL(const GURL& url, const GURL&,
+ WindowOpenDisposition disposition);
+
+ DOMUIContents* get_contents() { return contents_; }
Profile* get_profile() { return contents_->profile(); }
protected:
@@ -69,7 +83,7 @@
class DOMMessageHandler {
public:
explicit DOMMessageHandler(DOMUI* dom_ui);
- virtual ~DOMMessageHandler();
+ virtual ~DOMMessageHandler() {};
protected:
// Adds "url" and "title" keys on incoming dictionary, setting title
@@ -90,5 +104,4 @@
DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler);
};
-
#endif // CHROME_BROWSER_DOM_UI_H__
« no previous file with comments | « chrome/browser/debugger/debugger_contents.cc ('k') | chrome/browser/dom_ui/dom_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698