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

Unified Diff: content/browser/web_contents/web_contents_view.h

Issue 2122023002: Cross-process frames should be notified of device scale factor changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version of patch without second test. Created 4 years, 4 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/web_contents/web_contents_view.h
diff --git a/content/browser/web_contents/web_contents_view.h b/content/browser/web_contents/web_contents_view.h
index cbca3845b5d923d6dd85a7e0b4c14f16c6a05457..090ea993d21ceaafa7621611556a09508146e905 100644
--- a/content/browser/web_contents/web_contents_view.h
+++ b/content/browser/web_contents/web_contents_view.h
@@ -14,6 +14,10 @@
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/native_widget_types.h"
+namespace blink {
+ struct WebScreenInfo;
+}
+
namespace content {
class RenderViewHost;
class RenderWidgetHost;
@@ -39,6 +43,12 @@ class WebContentsView {
// dialog boxes.
virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0;
+ // The following static method is implemented by each platform.
+ static void GetDefaultScreenInfo(blink::WebScreenInfo* results);
+
+ // Gets screen information for the window associated with this view.
+ virtual void GetScreenInfo(blink::WebScreenInfo* web_screen_info) const = 0;
+
// Computes the rectangle for the native widget that contains the contents of
// the tab in the screen coordinate system.
virtual void GetContainerBounds(gfx::Rect* out) const = 0;
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/web_contents/web_contents_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698