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

Unified Diff: blimp/client/public/contents/blimp_contents.h

Issue 2255533002: Add TabControlFeature to BlimpClientContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: blimp/client/public/contents/blimp_contents.h
diff --git a/blimp/client/public/contents/blimp_contents.h b/blimp/client/public/contents/blimp_contents.h
index ea11aa7305a00239917de041d3f01b50c2fd34d8..f91165ce6635ac5264b23c43507f1c8f1b1eb055 100644
--- a/blimp/client/public/contents/blimp_contents.h
+++ b/blimp/client/public/contents/blimp_contents.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/supports_user_data.h"
+#include "ui/gfx/geometry/size.h"
#include "url/gurl.h"
namespace blimp {
@@ -31,6 +32,11 @@ class BlimpContents : public base::SupportsUserData {
virtual void AddObserver(BlimpContentsObserver* observer) = 0;
virtual void RemoveObserver(BlimpContentsObserver* observer) = 0;
+ // Pushes the size and scale information to the engine, which will affect the
+ // web content display area for all tabs.
+ virtual void SetSizeAndScale(const gfx::Size& size,
nyquist 2016/08/16 20:41:04 Could this possibly be moved to the impl instead?
Menglin 2016/08/16 21:10:09 impl has this function now. it overrides this the
nyquist 2016/08/16 21:41:40 yeah, you should be able to do that.
Menglin 2016/08/17 19:48:46 Done.
+ float device_pixel_ratio) = 0;
+
protected:
BlimpContents() {}

Powered by Google App Engine
This is Rietveld 408576698