summaryrefslogtreecommitdiffstats
path: root/mojo/services/public/interfaces/window_manager/window_manager_internal.mojom
blob: 9d7fef1c1fcf533775f76d75f1091b9f2e533eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 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.

import "mojo/services/public/interfaces/input_events/input_events.mojom";

module mojo {

// WindowManagerInternalService provides high level window management policies
// and is used by the ViewManager. This interface is marked as internal as only
// the view manager is allowed to connect to this.
[Client=WindowManagerInternalClient]
interface WindowManagerInternalService {
  // Called when an input event is received from the native system. It's
  // expected that when this is received the WindowManagerInternalService will
  // call back to WindowManagerInternalServieClient will call
  // DispatchInputEventToView().
  // TODO(sky): nuke this and instead have an interface specifically for
  // dispatching events in the NativeViewportService.
  OnViewInputEvent(mojo.Event event);
};

// ViewManager provides this interface for functionality only exposed to the
// WindowManagerInternalServie.
[Client=WindowManagerInternalService]
interface WindowManagerInternalClient {
  // Dispatches the specified input event to the specified view.
  DispatchInputEventToView(uint32 view_id, mojo.Event event);
};

}