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

Unified Diff: tools/iOSShell.h

Issue 373383003: ios fixes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: only build gyp on ios Created 6 years, 5 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 | « tools/flags/SkCommandLineFlags.h ('k') | tools/iOSShell.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/iOSShell.h
diff --git a/tools/iOSShell.h b/tools/iOSShell.h
new file mode 100644
index 0000000000000000000000000000000000000000..7473e0187c6bc5c5b42e6fa4a9b7d0864cf7e770
--- /dev/null
+++ b/tools/iOSShell.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2014 Skia
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef iOSShell_DEFINED
+#define iOSShell_DEFINED
+
+#include "SkWindow.h"
+
+class SkCanvas;
+class SkEvent;
+class SkViewFactory;
+
+class ShellWindow : public SkOSWindow {
+public:
+ ShellWindow(void* hwnd, int argc, char** argv);
+ virtual ~ShellWindow();
+
+ virtual SkCanvas* createCanvas() SK_OVERRIDE {
+ SkCanvas* canvas = this->INHERITED::createCanvas();
+ return canvas;
+ }
+
+protected:
+ virtual void onSizeChange() SK_OVERRIDE;
+
+ virtual bool onDispatchClick(int x, int y, Click::State, void* owner,
+ unsigned modi) SK_OVERRIDE;
+
+private:
+ typedef SkOSWindow INHERITED;
+};
+
+#endif
« no previous file with comments | « tools/flags/SkCommandLineFlags.h ('k') | tools/iOSShell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698