Home | History | Annotate | Download | only in views
      1 
      2 /*
      3  * Copyright 2011 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_Android_DEFINED
     11 #define SkOSWindow_Android_DEFINED
     12 
     13 #include "SkWindow.h"
     14 
     15 class SkIRect;
     16 
     17 class SkOSWindow : public SkWindow {
     18 public:
     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 
     36 protected:
     37     // overrides from SkWindow
     38     virtual void onHandleInval(const SkIRect&);
     39     virtual void onSetTitle(const char title[]);
     40 
     41 private:
     42     typedef SkWindow INHERITED;
     43 };
     44 
     45 #endif
     46