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

Side by Side Diff: content/public/renderer/render_view.h

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated according to discussion with rjkroege Created 8 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Returns the size of the view. 62 // Returns the size of the view.
63 virtual gfx::Size GetSize() = 0; 63 virtual gfx::Size GetSize() = 0;
64 64
65 // Returns the window we are embedded within. 65 // Returns the window we are embedded within.
66 virtual gfx::NativeViewId GetHostWindow() = 0; 66 virtual gfx::NativeViewId GetHostWindow() = 0;
67 67
68 // Gets WebKit related preferences associated with this view. 68 // Gets WebKit related preferences associated with this view.
69 virtual WebPreferences& GetWebkitPreferences() = 0; 69 virtual WebPreferences& GetWebkitPreferences() = 0;
70 70
71 // Gets the default device scale factor of the render view in absense
rjkroege 2012/02/16 23:35:05 absence
Fady Samuel 2012/02/17 00:05:47 Done.
72 // of a viewport meta tag.
73 virtual int GetDefaultDeviceScaleFactor() const = 0;
74
71 // Returns the associated WebView. May return NULL when the view is closing. 75 // Returns the associated WebView. May return NULL when the view is closing.
72 virtual WebKit::WebView* GetWebView() = 0; 76 virtual WebKit::WebView* GetWebView() = 0;
73 77
74 // Gets the focused node. If no such node exists then the node will be isNull. 78 // Gets the focused node. If no such node exists then the node will be isNull.
75 virtual WebKit::WebNode GetFocusedNode() const = 0; 79 virtual WebKit::WebNode GetFocusedNode() const = 0;
76 80
77 // Gets the node that the context menu was pressed over. 81 // Gets the node that the context menu was pressed over.
78 virtual WebKit::WebNode GetContextMenuNode() const = 0; 82 virtual WebKit::WebNode GetContextMenuNode() const = 0;
79 83
80 // Returns true if the parameter node is a textfield, text area or a content 84 // Returns true if the parameter node is a textfield, text area or a content
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // The client should handle the navigation externally. 130 // The client should handle the navigation externally.
127 virtual void LoadURLExternally( 131 virtual void LoadURLExternally(
128 WebKit::WebFrame* frame, 132 WebKit::WebFrame* frame,
129 const WebKit::WebURLRequest& request, 133 const WebKit::WebURLRequest& request,
130 WebKit::WebNavigationPolicy policy) = 0; 134 WebKit::WebNavigationPolicy policy) = 0;
131 }; 135 };
132 136
133 } // namespace content 137 } // namespace content
134 138
135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 139 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698