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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view.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_VIEW_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Returns the native widget with the main content of the tab (i.e. the main 59 // Returns the native widget with the main content of the tab (i.e. the main
60 // render view host, though there may be many popups in the tab as children of 60 // render view host, though there may be many popups in the tab as children of
61 // the container). 61 // the container).
62 virtual gfx::NativeView GetContentNativeView() const = 0; 62 virtual gfx::NativeView GetContentNativeView() const = 0;
63 63
64 // Returns the outermost native view. This will be used as the parent for 64 // Returns the outermost native view. This will be used as the parent for
65 // dialog boxes. 65 // dialog boxes.
66 virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0; 66 virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0;
67 67
68 // Initialize the passed-in renderer preferences.
69 virtual void InitRendererPrefs(RendererPreferences* prefs) {}
70
68 // Computes the rectangle for the native widget that contains the contents of 71 // Computes the rectangle for the native widget that contains the contents of
69 // the tab relative to its parent. 72 // the tab relative to its parent.
70 virtual void GetContainerBounds(gfx::Rect *out) const = 0; 73 virtual void GetContainerBounds(gfx::Rect *out) const = 0;
71 74
72 // Helper function for GetContainerBounds. Most callers just want to know the 75 // Helper function for GetContainerBounds. Most callers just want to know the
73 // size, and this makes it more clear. 76 // size, and this makes it more clear.
74 gfx::Size GetContainerSize() const { 77 gfx::Size GetContainerSize() const {
75 gfx::Rect rc; 78 gfx::Rect rc;
76 GetContainerBounds(&rc); 79 GetContainerBounds(&rc);
77 return gfx::Size(rc.width(), rc.height()); 80 return gfx::Size(rc.width(), rc.height());
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; 196 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews;
194 PendingWidgetViews pending_widget_views_; 197 PendingWidgetViews pending_widget_views_;
195 198
196 // The page content's intrinsic width. 199 // The page content's intrinsic width.
197 int preferred_width_; 200 int preferred_width_;
198 201
199 DISALLOW_COPY_AND_ASSIGN(TabContentsView); 202 DISALLOW_COPY_AND_ASSIGN(TabContentsView);
200 }; 203 };
201 204
202 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 205 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.h ('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