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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_delegate.h

Issue 115740: Move download shelf from per-tab to per-window (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "chrome/common/page_transition_types.h" 11 #include "chrome/common/page_transition_types.h"
12 #include "webkit/glue/window_open_disposition.h" 12 #include "webkit/glue/window_open_disposition.h"
13 13
14 class DownloadItem;
14 class ExtensionFunctionDispatcher; 15 class ExtensionFunctionDispatcher;
15 class RenderViewHost; 16 class RenderViewHost;
16 class TabContents; 17 class TabContents;
17 class HtmlDialogUIDelegate; 18 class HtmlDialogUIDelegate;
18 class GURL; 19 class GURL;
19 20
20 // Objects implement this interface to get notified about changes in the 21 // Objects implement this interface to get notified about changes in the
21 // TabContents and to provide necessary functionality. 22 // TabContents and to provide necessary functionality.
22 class TabContentsDelegate { 23 class TabContentsDelegate {
23 public: 24 public:
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Notification that some of our content has changed size as 83 // Notification that some of our content has changed size as
83 // part of an animation. 84 // part of an animation.
84 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) = 0; 85 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) = 0;
85 86
86 // Notification that the starredness of the current URL changed. 87 // Notification that the starredness of the current URL changed.
87 virtual void URLStarredChanged(TabContents* source, bool starred) = 0; 88 virtual void URLStarredChanged(TabContents* source, bool starred) = 0;
88 89
89 // Notification that the target URL has changed 90 // Notification that the target URL has changed
90 virtual void UpdateTargetURL(TabContents* source, const GURL& url) = 0; 91 virtual void UpdateTargetURL(TabContents* source, const GURL& url) = 0;
91 92
92 // Notification that the download shelf visibility state has been toggled.
93 virtual void UpdateDownloadShelfVisibility(bool visible) { }
94
95 // Notification that there was a mouse event 93 // Notification that there was a mouse event
96 virtual void ContentsMouseEvent(TabContents* source, bool motion) { } 94 virtual void ContentsMouseEvent(TabContents* source, bool motion) { }
97 95
98 // Request the delegate to change the zoom level of the current tab. 96 // Request the delegate to change the zoom level of the current tab.
99 virtual void ContentsZoomChange(bool zoom_in) { } 97 virtual void ContentsZoomChange(bool zoom_in) { }
100 98
101 // Check whether this contents is inside a window dedicated to running a web 99 // Check whether this contents is inside a window dedicated to running a web
102 // application. 100 // application.
103 virtual bool IsApplication() { return false; } 101 virtual bool IsApplication() { return false; }
104 102
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return false; 169 return false;
172 } 170 }
173 171
174 // Return much extra vertical space should be allotted to the 172 // Return much extra vertical space should be allotted to the
175 // render view widget during various animations (e.g. infobar closing). 173 // render view widget during various animations (e.g. infobar closing).
176 // This is used to make painting look smoother. 174 // This is used to make painting look smoother.
177 virtual int GetExtraRenderViewHeight() const { 175 virtual int GetExtraRenderViewHeight() const {
178 return 0; 176 return 0;
179 } 177 }
180 178
179 virtual void OnStartDownload(DownloadItem* download) {
180 }
181
181 protected: 182 protected:
182 ~TabContentsDelegate() {} 183 ~TabContentsDelegate() {}
183 184
184 }; 185 };
185 186
186 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 187 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents/tab_contents_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698