event: rename event.Foo to foo.Event.

Fixes golang/go#10444

Change-Id: Ie5a8ab8a09b1b1a4f7037da7cf945d39ab6a98fc
Reviewed-on: https://go-review.googlesource.com/12225
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Nigel Tao
2015-07-16 01:03:51 +00:00
parent a2120ea61f
commit e4c6af17e3
23 changed files with 397 additions and 293 deletions
+3 -3
View File
@@ -41,7 +41,7 @@ import (
"net/http"
"golang.org/x/mobile/app"
"golang.org/x/mobile/event"
"golang.org/x/mobile/event/config"
"golang.org/x/mobile/exp/app/debug"
"golang.org/x/mobile/gl"
)
@@ -51,7 +51,7 @@ func main() {
go checkNetwork()
app.Run(app.Callbacks{
Draw: draw,
Draw: onDraw,
})
}
@@ -70,7 +70,7 @@ func checkNetwork() {
ok = true
}
func draw(c event.Config) {
func onDraw(c config.Event) {
select {
case <-determined:
if ok {