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

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

Issue 458013: Make the default RendererPreferences smarter.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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_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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Returns the native widget with the main content of the tab (i.e. the main 54 // Returns the native widget with the main content of the tab (i.e. the main
55 // render view host, though there may be many popups in the tab as children of 55 // render view host, though there may be many popups in the tab as children of
56 // the container). 56 // the container).
57 virtual gfx::NativeView GetContentNativeView() const = 0; 57 virtual gfx::NativeView GetContentNativeView() const = 0;
58 58
59 // Returns the outermost native view. This will be used as the parent for 59 // Returns the outermost native view. This will be used as the parent for
60 // dialog boxes. 60 // dialog boxes.
61 virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0; 61 virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0;
62 62
63 // Initialize the passed-in renderer preferences.
64 virtual void InitRendererPrefs(RendererPreferences* prefs) {}
65
66 // Computes the rectangle for the native widget that contains the contents of 63 // Computes the rectangle for the native widget that contains the contents of
67 // the tab relative to its parent. 64 // the tab relative to its parent.
68 virtual void GetContainerBounds(gfx::Rect *out) const = 0; 65 virtual void GetContainerBounds(gfx::Rect *out) const = 0;
69 66
70 // Helper function for GetContainerBounds. Most callers just want to know the 67 // Helper function for GetContainerBounds. Most callers just want to know the
71 // size, and this makes it more clear. 68 // size, and this makes it more clear.
72 gfx::Size GetContainerSize() const { 69 gfx::Size GetContainerSize() const {
73 gfx::Rect rc; 70 gfx::Rect rc;
74 GetContainerBounds(&rc); 71 GetContainerBounds(&rc);
75 return gfx::Size(rc.width(), rc.height()); 72 return gfx::Size(rc.width(), rc.height());
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; 190 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews;
194 PendingWidgetViews pending_widget_views_; 191 PendingWidgetViews pending_widget_views_;
195 192
196 // The page content's intrinsic width. 193 // The page content's intrinsic width.
197 int preferred_width_; 194 int preferred_width_;
198 195
199 DISALLOW_COPY_AND_ASSIGN(TabContentsView); 196 DISALLOW_COPY_AND_ASSIGN(TabContentsView);
200 }; 197 };
201 198
202 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 199 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_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