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

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

Issue 155787: Make Linux pass users' font settings through to renderer. (Closed)
Patch Set: remove unneeded include Created 11 years, 5 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
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/native_web_keyboard_event.h" 11 #include "chrome/common/native_web_keyboard_event.h"
12 #include "chrome/common/page_transition_types.h" 12 #include "chrome/common/page_transition_types.h"
13 #include "chrome/common/renderer_preferences.h"
14 #include "webkit/glue/context_menu.h" 13 #include "webkit/glue/context_menu.h"
15 #include "webkit/glue/window_open_disposition.h" 14 #include "webkit/glue/window_open_disposition.h"
16 15
17 class DownloadItem; 16 class DownloadItem;
18 class ExtensionFunctionDispatcher; 17 class ExtensionFunctionDispatcher;
19 class GURL; 18 class GURL;
20 class HtmlDialogUIDelegate; 19 class HtmlDialogUIDelegate;
21 class Profile; 20 class Profile;
22 class RenderViewHost; 21 class RenderViewHost;
23 class TabContents; 22 class TabContents;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Returns true if the context menu operation was handled by the delegate. 189 // Returns true if the context menu operation was handled by the delegate.
191 virtual bool HandleContextMenu(const ContextMenuParams& params) { 190 virtual bool HandleContextMenu(const ContextMenuParams& params) {
192 return false; 191 return false;
193 } 192 }
194 193
195 // Returns true if the context menu command was handled 194 // Returns true if the context menu command was handled
196 virtual bool ExecuteContextMenuCommand(int command) { 195 virtual bool ExecuteContextMenuCommand(int command) {
197 return false; 196 return false;
198 } 197 }
199 198
200 // Returns the renderer's current preferences settings.
201 RendererPreferences GetRendererPrefs() const { return renderer_preferences_; }
202
203 // Shows a confirmation UI that the specified |template_url| is to be added as 199 // Shows a confirmation UI that the specified |template_url| is to be added as
204 // a search engine. 200 // a search engine.
205 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, 201 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url,
206 Profile* profile) { 202 Profile* profile) {
207 } 203 }
208 204
209 // Allows delegates to handle unhandled keyboard messages coming back from 205 // Allows delegates to handle unhandled keyboard messages coming back from
210 // the renderer. 206 // the renderer.
211 // Returns true if the keyboard message was handled. 207 // Returns true if the keyboard message was handled.
212 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { 208 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
213 return false; 209 return false;
214 } 210 }
215 211
216 protected: 212 protected:
217 ~TabContentsDelegate() {} 213 ~TabContentsDelegate() {}
218 RendererPreferences renderer_preferences_;
219 214
220 }; 215 };
221 216
222 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 217 #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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698