blob: 7473e0187c6bc5c5b42e6fa4a9b7d0864cf7e770 [file] [log] [blame]
caryclark936b7342014-07-11 12:14:51 -07001/*
2 * Copyright 2014 Skia
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef iOSShell_DEFINED
9#define iOSShell_DEFINED
10
11#include "SkWindow.h"
12
13class SkCanvas;
14class SkEvent;
15class SkViewFactory;
16
17class ShellWindow : public SkOSWindow {
18public:
19 ShellWindow(void* hwnd, int argc, char** argv);
20 virtual ~ShellWindow();
21
22 virtual SkCanvas* createCanvas() SK_OVERRIDE {
23 SkCanvas* canvas = this->INHERITED::createCanvas();
24 return canvas;
25 }
26
27protected:
28 virtual void onSizeChange() SK_OVERRIDE;
29
30 virtual bool onDispatchClick(int x, int y, Click::State, void* owner,
31 unsigned modi) SK_OVERRIDE;
32
33private:
34 typedef SkOSWindow INHERITED;
35};
36
37#endif