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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Notification that some of our content has changed size as | 82 // Notification that some of our content has changed size as |
83 // part of an animation. | 83 // part of an animation. |
84 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) = 0; | 84 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) = 0; |
85 | 85 |
86 // Notification that the starredness of the current URL changed. | 86 // Notification that the starredness of the current URL changed. |
87 virtual void URLStarredChanged(TabContents* source, bool starred) = 0; | 87 virtual void URLStarredChanged(TabContents* source, bool starred) = 0; |
88 | 88 |
89 // Notification that the target URL has changed | 89 // Notification that the target URL has changed |
90 virtual void UpdateTargetURL(TabContents* source, const GURL& url) = 0; | 90 virtual void UpdateTargetURL(TabContents* source, const GURL& url) = 0; |
91 | 91 |
| 92 // Notification that the download shelf visibility state has been toggled. |
| 93 virtual void UpdateDownloadShelfVisibility(bool visible) { } |
| 94 |
92 // Notification that there was a mouse event | 95 // Notification that there was a mouse event |
93 virtual void ContentsMouseEvent(TabContents* source, bool motion) { } | 96 virtual void ContentsMouseEvent(TabContents* source, bool motion) { } |
94 | 97 |
95 // Request the delegate to change the zoom level of the current tab. | 98 // Request the delegate to change the zoom level of the current tab. |
96 virtual void ContentsZoomChange(bool zoom_in) { } | 99 virtual void ContentsZoomChange(bool zoom_in) { } |
97 | 100 |
98 // Check whether this contents is inside a window dedicated to running a web | 101 // Check whether this contents is inside a window dedicated to running a web |
99 // application. | 102 // application. |
100 virtual bool IsApplication() { return false; } | 103 virtual bool IsApplication() { return false; } |
101 | 104 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 virtual int GetExtraRenderViewHeight() { | 177 virtual int GetExtraRenderViewHeight() { |
175 return 0; | 178 return 0; |
176 } | 179 } |
177 | 180 |
178 protected: | 181 protected: |
179 ~TabContentsDelegate() {} | 182 ~TabContentsDelegate() {} |
180 | 183 |
181 }; | 184 }; |
182 | 185 |
183 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 186 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
OLD | NEW |