blob: 52514cab71d58046ec01b13e3cb1bff184830f35 [file] [log] [blame]
borenet@google.com7158e6a2012-11-01 17:43:44 +00001
2/*
3 * Copyright 2012 Skia
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9
10#ifndef SkOSWindow_NaCl_DEFINED
11#define SkOSWindow_NaCl_DEFINED
12
13#include "SkWindow.h"
14
15class SkIRect;
16
17class SkOSWindow : public SkWindow {
18public:
19 SkOSWindow(void*) {}
20 ~SkOSWindow() {}
21
22 enum SkBackEndTypes {
23 kNone_BackEndType,
24 kNativeGL_BackEndType,
25 };
26
27 bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */) {
28 return true;
29 }
30 void detach() {}
31 void present() {}
32
33 virtual void onPDFSaved(const char title[], const char desc[],
34 const char path[]);
35
36protected:
37 // overrides from SkWindow
38 virtual void onHandleInval(const SkIRect&);
39 virtual void onSetTitle(const char title[]);
40
41private:
42 typedef SkWindow INHERITED;
43};
44
45#endif