| 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 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gfx/native_widget_types.h" | 9 #include "base/gfx/native_widget_types.h" |
| 10 #include "base/gfx/rect.h" | 10 #include "base/gfx/rect.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 return NULL; | 164 return NULL; |
| 165 } | 165 } |
| 166 | 166 |
| 167 // This is called when webkit tells us that it is done tabbing through | 167 // This is called when webkit tells us that it is done tabbing through |
| 168 // controls on the page. Provides a way for TabContentsDelegates to handle | 168 // controls on the page. Provides a way for TabContentsDelegates to handle |
| 169 // this. Returns true if the delegate successfully handled it. | 169 // this. Returns true if the delegate successfully handled it. |
| 170 virtual bool TakeFocus(bool reverse) { | 170 virtual bool TakeFocus(bool reverse) { |
| 171 return false; | 171 return false; |
| 172 } | 172 } |
| 173 | 173 |
| 174 // Notification that |tab_contents| has gained focus. |
| 175 virtual void TabContentsFocused(TabContents* tab_content) { } |
| 176 |
| 174 // Return much extra vertical space should be allotted to the | 177 // Return much extra vertical space should be allotted to the |
| 175 // render view widget during various animations (e.g. infobar closing). | 178 // render view widget during various animations (e.g. infobar closing). |
| 176 // This is used to make painting look smoother. | 179 // This is used to make painting look smoother. |
| 177 virtual int GetExtraRenderViewHeight() const { | 180 virtual int GetExtraRenderViewHeight() const { |
| 178 return 0; | 181 return 0; |
| 179 } | 182 } |
| 180 | 183 |
| 181 virtual void OnStartDownload(DownloadItem* download) { | 184 virtual void OnStartDownload(DownloadItem* download) { |
| 182 } | 185 } |
| 183 | 186 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 194 // Returns the renderer's current preferences settings. | 197 // Returns the renderer's current preferences settings. |
| 195 RendererPreferences GetRendererPrefs() const { return renderer_preferences_; } | 198 RendererPreferences GetRendererPrefs() const { return renderer_preferences_; } |
| 196 | 199 |
| 197 protected: | 200 protected: |
| 198 ~TabContentsDelegate() {} | 201 ~TabContentsDelegate() {} |
| 199 RendererPreferences renderer_preferences_; | 202 RendererPreferences renderer_preferences_; |
| 200 | 203 |
| 201 }; | 204 }; |
| 202 | 205 |
| 203 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 206 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |