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

Unified Diff: sky/shell/ui_delegate.h

Issue 932283002: Port touch-demo.sky to Dart and make it work in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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_delegate.h
diff --git a/sky/shell/ui_delegate.h b/sky/shell/ui_delegate.h
index bb7e44b8c149999c60a8b06e19ac7fcff028496d..d50a34acdf421b329ba7f480f4dbd4114719196a 100644
--- a/sky/shell/ui_delegate.h
+++ b/sky/shell/ui_delegate.h
@@ -5,6 +5,8 @@
#ifndef SKY_SHELL_UI_DELEGATE_H_
#define SKY_SHELL_UI_DELEGATE_H_
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "sky/services/viewport/viewport_observer.mojom.h"
#include "ui/gfx/geometry/size.h"
namespace sky {
@@ -12,8 +14,8 @@ namespace shell {
class UIDelegate {
public:
- virtual void OnViewportMetricsChanged(const gfx::Size& size,
- float device_pixel_ratio) = 0;
+ virtual void ConnectToViewportObserver(
+ mojo::InterfaceRequest<ViewportObserver> request) = 0;
protected:
virtual ~UIDelegate();
« sky/services/viewport/viewport_observer.mojom ('K') | « sky/shell/ui/input_event_converter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698