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

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

Issue 1222663003: Rename ViewportObserver to SkyEngine (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: now with moar files Created 5 years, 6 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
« no previous file with comments | « sky/shell/testing/test_runner.cc ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/ui/engine.h
diff --git a/sky/shell/ui/engine.h b/sky/shell/ui/engine.h
index 4cc333022b9be773c198d8cc9b534274f859f3d9..6677019d815fe41e1d2fdcefe5bf7855d8b43c99 100644
--- a/sky/shell/ui/engine.h
+++ b/sky/shell/ui/engine.h
@@ -29,7 +29,7 @@ namespace shell {
class Animator;
class Engine : public UIDelegate,
- public ViewportObserver,
+ public SkyEngine,
public blink::ServiceProvider,
public mojo::NavigatorHost,
public blink::SkyViewClient {
@@ -55,13 +55,12 @@ class Engine : public UIDelegate,
skia::RefPtr<SkPicture> Paint();
private:
- // UIDelegate methods:
- void ConnectToViewportObserver(
- mojo::InterfaceRequest<ViewportObserver> request) override;
+ // UIDelegate implementation:
+ void ConnectToEngine(mojo::InterfaceRequest<SkyEngine> request) override;
void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) override;
void OnOutputSurfaceDestroyed() override;
- // ViewportObserver:
+ // SkyEngine implementation:
void OnViewportMetricsChanged(int width, int height,
float device_pixel_ratio) override;
void OnInputEvent(InputEventPtr event) override;
@@ -96,7 +95,7 @@ class Engine : public UIDelegate,
float device_pixel_ratio_;
gfx::Size physical_size_;
- mojo::Binding<ViewportObserver> viewport_observer_binding_;
+ mojo::Binding<SkyEngine> binding_;
base::WeakPtrFactory<Engine> weak_factory_;
« no previous file with comments | « sky/shell/testing/test_runner.cc ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698