OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_ | 5 #ifndef UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_ |
6 #define UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_ | 6 #define UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_ |
7 | 7 |
8 #include "ui/events/platform/platform_event_dispatcher.h" | 8 #include "ui/events/platform/platform_event_dispatcher.h" |
9 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
10 #include "ui/gfx/x/x11_atom_cache.h" | 10 #include "ui/gfx/x/x11_atom_cache.h" |
11 #include "ui/platform_window/platform_window.h" | 11 #include "ui/platform_window/platform_window.h" |
12 #include "ui/platform_window/platform_window_delegate.h" | 12 #include "ui/platform_window/platform_window_delegate.h" |
13 #include "ui/platform_window/x11/x11_window_export.h" | 13 #include "ui/platform_window/x11/x11_window_export.h" |
14 | 14 |
15 typedef struct _XDisplay XDisplay; | 15 typedef struct _XDisplay XDisplay; |
16 typedef unsigned long XID; | 16 typedef unsigned long XID; |
17 | 17 |
18 namespace ui { | 18 namespace ui { |
19 | 19 |
20 class X11_WINDOW_EXPORT X11Window : public PlatformWindow, | 20 class X11_WINDOW_EXPORT X11Window : public PlatformWindow, |
21 public PlatformEventDispatcher { | 21 public PlatformEventDispatcher { |
22 public: | 22 public: |
23 explicit X11Window(PlatformWindowDelegate* delegate); | 23 explicit X11Window(PlatformWindowDelegate* delegate); |
24 virtual ~X11Window(); | 24 virtual ~X11Window(); |
25 | 25 |
26 private: | 26 private: |
27 void Destroy(); | 27 void Destroy(); |
28 | 28 |
| 29 void ProcessXInput2Event(XEvent* xevent); |
| 30 |
29 // PlatformWindow: | 31 // PlatformWindow: |
30 virtual void Show() OVERRIDE; | 32 virtual void Show() OVERRIDE; |
31 virtual void Hide() OVERRIDE; | 33 virtual void Hide() OVERRIDE; |
32 virtual void Close() OVERRIDE; | 34 virtual void Close() OVERRIDE; |
33 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 35 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
34 virtual gfx::Rect GetBounds() OVERRIDE; | 36 virtual gfx::Rect GetBounds() OVERRIDE; |
35 virtual void SetCapture() OVERRIDE; | 37 virtual void SetCapture() OVERRIDE; |
36 virtual void ReleaseCapture() OVERRIDE; | 38 virtual void ReleaseCapture() OVERRIDE; |
37 virtual void ToggleFullscreen() OVERRIDE; | 39 virtual void ToggleFullscreen() OVERRIDE; |
38 virtual void Maximize() OVERRIDE; | 40 virtual void Maximize() OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
57 gfx::Rect confirmed_bounds_; | 59 gfx::Rect confirmed_bounds_; |
58 | 60 |
59 bool window_mapped_; | 61 bool window_mapped_; |
60 | 62 |
61 DISALLOW_COPY_AND_ASSIGN(X11Window); | 63 DISALLOW_COPY_AND_ASSIGN(X11Window); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace ui | 66 } // namespace ui |
65 | 67 |
66 #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_ | 68 #endif // UI_PLATFORM_WINDOW_X11_X11_WINDOW_H_ |
OLD | NEW |