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

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: Remove redundant comments. 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 0abe1a6ac0a7b848f380d76a2b9c359572807996..98fcedcf8872636a7a283a9a31576ffaa2132ed9 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;
@@ -209,6 +213,7 @@ class RenderWidgetHostViewWin
bool has_horizontal_scrollbar) OVERRIDE;
virtual void SetScrollOffsetPinning(
bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
+ virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
virtual void AcceleratedSurfaceBuffersSwapped(
@@ -413,6 +418,9 @@ class RenderWidgetHostViewWin
// current |text_input_type_|.
void UpdateIMEState();
+ // Returns bounds of the view in pixels.
+ gfx::Rect GetPixelBounds() const;
+
// Sets the appropriate input scope for given |text_input_type| if TSF-aware
// is not required. Does nothing if TSF-aware is required (and TSF text store
// is responsible for managing input scope). Currently input scope will only

Powered by Google App Engine
This is Rietveld 408576698