| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
| 6 #define UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 6 #define UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
| 7 | 7 |
| 8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
| 9 | 9 |
| 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public MessageLoop::Dispatcher { | 26 public MessageLoop::Dispatcher { |
| 27 public: | 27 public: |
| 28 RootWindowHostLinux(RootWindowHostDelegate* delegate, | 28 RootWindowHostLinux(RootWindowHostDelegate* delegate, |
| 29 const gfx::Rect& bounds); | 29 const gfx::Rect& bounds); |
| 30 virtual ~RootWindowHostLinux(); | 30 virtual ~RootWindowHostLinux(); |
| 31 | 31 |
| 32 // Overridden from Dispatcher overrides: | 32 // Overridden from Dispatcher overrides: |
| 33 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; | 33 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 bool DispatchEventForRootWindow(const base::NativeEvent& event); |
| 37 |
| 36 // RootWindowHost Overrides. | 38 // RootWindowHost Overrides. |
| 37 virtual RootWindow* GetRootWindow() OVERRIDE; | 39 virtual RootWindow* GetRootWindow() OVERRIDE; |
| 38 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 40 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
| 39 virtual void Show() OVERRIDE; | 41 virtual void Show() OVERRIDE; |
| 40 virtual void Hide() OVERRIDE; | 42 virtual void Hide() OVERRIDE; |
| 41 virtual void ToggleFullScreen() OVERRIDE; | 43 virtual void ToggleFullScreen() OVERRIDE; |
| 42 virtual gfx::Rect GetBounds() const OVERRIDE; | 44 virtual gfx::Rect GetBounds() const OVERRIDE; |
| 43 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 45 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 44 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 46 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
| 45 virtual void SetCapture() OVERRIDE; | 47 virtual void SetCapture() OVERRIDE; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 scoped_ptr<ui::ViewProp> prop_; | 104 scoped_ptr<ui::ViewProp> prop_; |
| 103 | 105 |
| 104 X11AtomCache atom_cache_; | 106 X11AtomCache atom_cache_; |
| 105 | 107 |
| 106 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 108 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 } // namespace aura | 111 } // namespace aura |
| 110 | 112 |
| 111 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 113 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
| OLD | NEW |