app,app/internal/wm: implement ViewEvent for macOS

Move the deprecated setWantsBestResolutionOpenGLSurface to GL-specific
code while we're here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-05-16 14:57:20 +02:00
parent 413bff8766
commit 1ec408280e
9 changed files with 46 additions and 5 deletions
+6 -1
View File
@@ -4,7 +4,6 @@ package wm
import (
"fmt"
"gioui.org/internal/f32color"
"image"
"image/color"
"strings"
@@ -14,6 +13,8 @@ import (
"unicode"
"unicode/utf8"
"gioui.org/internal/f32color"
"gioui.org/f32"
"gioui.org/io/clipboard"
"gioui.org/io/key"
@@ -22,6 +23,8 @@ import (
"gioui.org/unit"
)
type ViewEvent struct{}
type window struct {
window js.Value
document js.Value
@@ -671,3 +674,5 @@ func translateKey(k string) (string, bool) {
}
return n, true
}
func (_ ViewEvent) ImplementsEvent() {}