blob: d90bf7cfff8c678f1c155f8d77bcf8b13bb69a52 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module mojo {
struct Point {
float x;
float y;
};
struct TouchData {
int32 pointer_id;
};
struct Event {
int32 action;
int64 time_stamp;
Point location;
TouchData touch_data;
};
[Peer=NativeViewportClient]
interface NativeViewport {
void Open();
void Close();
void CreateGLES2Context(handle<message_pipe> gles2_client);
void AckEvent(Event event);
};
[Peer=NativeViewport]
interface NativeViewportClient {
void OnCreated();
void OnDestroyed();
void OnEvent(Event event);
};
}