aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/views/SkOSWindow_Mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/views/SkOSWindow_Mac.h')
-rw-r--r--include/views/SkOSWindow_Mac.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/include/views/SkOSWindow_Mac.h b/include/views/SkOSWindow_Mac.h
deleted file mode 100644
index d331ecaa71..0000000000
--- a/include/views/SkOSWindow_Mac.h
+++ /dev/null
@@ -1,63 +0,0 @@
-
-/*
- * Copyright 2006 The Android Open Source Project
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkOSWindow_MacCocoa_DEFINED
-#define SkOSWindow_MacCocoa_DEFINED
-
-#include "SkWindow.h"
-
-class SkOSWindow : public SkWindow {
-public:
- SkOSWindow(void* hwnd, int w, int h);
- SkOSWindow(void* hwnd);
- ~SkOSWindow();
- void* getHWND() const { return fHWND; }
-
- virtual bool onDispatchClick(int x, int y, Click::State state,
- void* owner, unsigned modi);
- enum SkBackEndTypes {
- kNone_BackEndType,
-#if SK_SUPPORT_GPU
- kNativeGL_BackEndType,
-#endif
-#if SK_ANGLE
- kANGLE_BackEndType,
-#endif // SK_ANGLE
- };
-
- void release();
- bool attach(SkBackEndTypes attachType, int msaaSampleCount, bool deepColor,
- AttachmentInfo*);
- void present();
-
- bool makeFullscreen();
- void closeWindow();
- void setVsync(bool);
-protected:
- // overrides from SkEventSink
- virtual bool onEvent(const SkEvent& evt);
- // overrides from SkWindow
- virtual void onHandleInval(const SkIRect&);
- // overrides from SkView
- virtual void onAddMenu(const SkOSMenu*);
- virtual void onUpdateMenu(const SkOSMenu*);
- virtual void onSetTitle(const char[]);
-
-private:
- void init(void* hwnd, int w, int h);
-
- void* fHWND;
- bool fInvalEventIsPending;
- void* fNotifier;
-#if SK_SUPPORT_GPU
- void* fGLContext;
-#endif
- typedef SkWindow INHERITED;
-};
-
-#endif