317ef9f7dffd3dead873b68ffb4257548ff90e82
[platform/framework/web/crosswalk.git] / src / third_party / skia / include / views / SkOSWindow_NaCl.h
1 /*
2  * Copyright 2012 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 SkOSWindow_NaCl_DEFINED
9 #define SkOSWindow_NaCl_DEFINED
10
11 #include "SkWindow.h"
12
13 class SkOSWindow : public SkWindow {
14 public:
15     SkOSWindow(void*) {}
16     ~SkOSWindow() {}
17
18     enum SkBackEndTypes {
19         kNone_BackEndType,
20         kNativeGL_BackEndType,
21     };
22
23     struct AttachmentInfo {
24         int fSampleCount;
25         int fStencilBits;
26     };
27
28     bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */, AttachmentInfo* info) {
29         info->fSampleCount = 0;
30         info->fStencilBits = 0;
31         return true;
32     }
33     void detach() {}
34     void present() {}
35
36     virtual void onPDFSaved(const char title[], const char desc[],
37         const char path[]);
38
39 protected:
40     // overrides from SkWindow
41     virtual void onHandleInval(const SkIRect&);
42     virtual void onSetTitle(const char title[]);
43
44 private:
45     typedef SkWindow INHERITED;
46 };
47
48 #endif