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

Unified Diff: sky/shell/ui/engine.h

Issue 880443003: Plumb resize notifications around sky/shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: git cl format Created 5 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 side-by-side diff with in-line comments
Download patch
Index: sky/shell/ui/engine.h
diff --git a/sky/shell/ui/engine.h b/sky/shell/ui/engine.h
index cba0c7a7ad9541e7f7c683af0cd8fbeb87b51101..9deccd8c6b8b4e2ddb0da4f8f3ebd062b65eacb9 100644
--- a/sky/shell/ui/engine.h
+++ b/sky/shell/ui/engine.h
@@ -10,12 +10,15 @@
#include "base/memory/weak_ptr.h"
#include "sky/engine/public/web/WebFrameClient.h"
#include "sky/engine/public/web/WebViewClient.h"
+#include "sky/shell/ui_delegate.h"
+#include "ui/gfx/geometry/size.h"
namespace sky {
namespace shell {
class PlatformImpl;
-class Engine : public blink::WebFrameClient,
+class Engine : public UIDelegate,
+ public blink::WebFrameClient,
public blink::WebViewClient {
public:
Engine();
@@ -25,6 +28,9 @@ class Engine : public blink::WebFrameClient,
void Init();
+ void OnViewportMetricsChanged(const gfx::Size& size,
+ float device_pixel_ratio) override;
+
private:
scoped_ptr<PlatformImpl> platform_impl_;
blink::WebView* web_view_;
« sky/shell/sky_view.cc ('K') | « sky/shell/sky_view.cc ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698