• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2020 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // IOSWindow.h: Definition of the implementation of OSWindow for iOS
8 
9 #ifndef UTIL_IOS_WINDOW_H_
10 #define UTIL_IOS_WINDOW_H_
11 
12 #include "common/debug.h"
13 #include "util/OSWindow.h"
14 
15 class IOSWindow : public OSWindow
16 {
17   public:
IOSWindow()18     IOSWindow() {}
~IOSWindow()19     ~IOSWindow() override {}
20 
disableErrorMessageDialog()21     void disableErrorMessageDialog() override {}
destroy()22     void destroy() override {}
23 
resetNativeWindow()24     void resetNativeWindow() override {}
25     EGLNativeWindowType getNativeWindow() const override;
getNativeDisplay()26     EGLNativeDisplayType getNativeDisplay() const override { return EGL_DEFAULT_DISPLAY; }
27 
messageLoop()28     void messageLoop() override {}
29 
setMousePosition(int x,int y)30     void setMousePosition(int x, int y) override { UNIMPLEMENTED(); }
31     bool setOrientation(int width, int height) override;
setPosition(int x,int y)32     bool setPosition(int x, int y) override
33     {
34         UNIMPLEMENTED();
35         return false;
36     }
37     bool resize(int width, int height) override;
setVisible(bool isVisible)38     void setVisible(bool isVisible) override {}
39 
signalTestEvent()40     void signalTestEvent() override { UNIMPLEMENTED(); }
41 
42   private:
43     bool initializeImpl(const std::string &name, int width, int height) override;
44 };
45 
46 #endif  // UTIL_IOS_WINDOW_H_
47