blob: 13c4f714f2d79977b51b2c5d3dec369c8d95b267 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Copyright (c) 2012 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.
#ifndef UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
#define UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
namespace gfx {
class Point;
class Size;
}
namespace ui {
class KeyEvent;
class MouseEvent;
class ScrollEvent;
class TouchEvent;
}
namespace aura {
class RootWindow;
// A private interface used by RootWindowHost implementations to communicate
// with their owning RootWindow.
class AURA_EXPORT RootWindowHostDelegate {
public:
virtual bool OnHostKeyEvent(ui::KeyEvent* event) = 0;
virtual bool OnHostMouseEvent(ui::MouseEvent* event) = 0;
virtual bool OnHostScrollEvent(ui::ScrollEvent* event) = 0;
virtual bool OnHostTouchEvent(ui::TouchEvent* event) = 0;
virtual void OnHostLostCapture() = 0;
virtual void OnHostPaint() = 0;
virtual void OnHostMoved(const gfx::Point& origin) = 0;
virtual void OnHostResized(const gfx::Size& size) = 0;
virtual float GetDeviceScaleFactor() = 0;
virtual RootWindow* AsRootWindow() = 0;
protected:
virtual ~RootWindowHostDelegate() {}
};
} // namespace aura
#endif // UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
|