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

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

Issue 122002: Moving the WM_SETFOCUS message processing out of FocusManager (Closed) Base URL: svn://chrome-svn/chrome/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"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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