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

Unified Diff: sky/engine/public/sky/sky_view.h

Issue 1134913003: Teach SkyView path to draw a circle (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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/engine/public/sky/BUILD.gn ('k') | sky/engine/public/sky/sky_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/public/sky/sky_view.h
diff --git a/sky/engine/public/sky/sky_view.h b/sky/engine/public/sky/sky_view.h
index 8a2860a0061c6b421cf14a51ee40a3efef45277e..a8d722260a259b52dc25c612a66e85eabf55721d 100644
--- a/sky/engine/public/sky/sky_view.h
+++ b/sky/engine/public/sky/sky_view.h
@@ -6,6 +6,7 @@
#define SKY_ENGINE_PUBLIC_SKY_SKY_VIEW_H_
#include <memory>
+#include "base/memory/weak_ptr.h"
#include "skia/ext/refptr.h"
#include "sky/engine/public/platform/WebCommon.h"
#include "sky/engine/public/platform/WebURL.h"
@@ -14,11 +15,12 @@
namespace blink {
class DartController;
+class SkyViewClient;
class WebInputEvent;
class SkyView {
public:
- static std::unique_ptr<SkyView> Create();
+ static std::unique_ptr<SkyView> Create(SkyViewClient* client);
~SkyView();
void SetDisplayMetrics(const SkyDisplayMetrics& metrics);
@@ -27,9 +29,17 @@ class SkyView {
bool HandleInputEvent(const WebInputEvent& event);
private:
- SkyView();
+ explicit SkyView(SkyViewClient* client);
+ void SchedulePaint();
+
+ class Data;
+
+ SkyViewClient* client_;
std::unique_ptr<DartController> dart_controller_;
+ std::unique_ptr<Data> data_;
+
+ base::WeakPtrFactory<SkyView> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SkyView);
};
« no previous file with comments | « sky/engine/public/sky/BUILD.gn ('k') | sky/engine/public/sky/sky_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698