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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.h

Issue 11953054: Fix high-DPI on Windows to make use of DIP scaling in WebKit. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code cleanup. Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_win.h
diff --git a/content/browser/renderer_host/render_widget_host_view_win.h b/content/browser/renderer_host/render_widget_host_view_win.h
index 9822ee4492baf822ad30a048beef1130a0f1cb50..b025ec3a42960372cfeacbcd2f8404d7777d1d74 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.h
+++ b/content/browser/renderer_host/render_widget_host_view_win.h
@@ -48,6 +48,10 @@ namespace ui {
class ViewProp;
}
+namespace WebKit {
+struct WebScreenInfo;
+}
+
namespace content {
class BackingStore;
class RenderWidgetHost;
@@ -272,6 +276,7 @@ class RenderWidgetHostViewWin
base::i18n::TextDirection direction) OVERRIDE;
virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE;
+ virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
protected:
friend class RenderWidgetHostView;
@@ -413,6 +418,9 @@ class RenderWidgetHostViewWin
// current |text_input_type_|.
void UpdateIMEState();
+ // Returns bounds of the view in pixels.
+ gfx::Rect getPixelBounds() const;
+
// The associated Model. While |this| is being Destroyed,
// |render_widget_host_| is NULL and the Windows message loop is run one last
// time. Message handlers must check for a NULL |render_widget_host_|.

Powered by Google App Engine
This is Rietveld 408576698