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__ |