| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |