Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: ui/aura/root_window_host_linux.h

Issue 10913253: aura: Make sure the root-window retains the X events it was already listening for. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: tot-merge Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/aura/root_window_host_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 19 matching lines...) Expand all
30 public MessageLoop::Dispatcher { 30 public MessageLoop::Dispatcher {
31 public: 31 public:
32 RootWindowHostLinux(RootWindowHostDelegate* delegate, 32 RootWindowHostLinux(RootWindowHostDelegate* delegate,
33 const gfx::Rect& bounds); 33 const gfx::Rect& bounds);
34 virtual ~RootWindowHostLinux(); 34 virtual ~RootWindowHostLinux();
35 35
36 // Overridden from Dispatcher overrides: 36 // Overridden from Dispatcher overrides:
37 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; 37 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
38 38
39 private: 39 private:
40 bool DispatchEventForRootWindow(const base::NativeEvent& event);
41
42 // Dispatches XI2 events. Note that some events targetted for the X root
43 // window are dispatched to the aura root window (e.g. touch events after
44 // calibration).
45 void DispatchXI2Event(const base::NativeEvent& event);
46
40 // RootWindowHost Overrides. 47 // RootWindowHost Overrides.
41 virtual RootWindow* GetRootWindow() OVERRIDE; 48 virtual RootWindow* GetRootWindow() OVERRIDE;
42 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 49 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
43 virtual void Show() OVERRIDE; 50 virtual void Show() OVERRIDE;
44 virtual void Hide() OVERRIDE; 51 virtual void Hide() OVERRIDE;
45 virtual void ToggleFullScreen() OVERRIDE; 52 virtual void ToggleFullScreen() OVERRIDE;
46 virtual gfx::Rect GetBounds() const OVERRIDE; 53 virtual gfx::Rect GetBounds() const OVERRIDE;
47 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 54 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
48 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 55 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
49 virtual void SetCapture() OVERRIDE; 56 virtual void SetCapture() OVERRIDE;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 scoped_ptr<internal::TouchEventCalibrate> touch_calibrate_; 115 scoped_ptr<internal::TouchEventCalibrate> touch_calibrate_;
109 116
110 ui::X11AtomCache atom_cache_; 117 ui::X11AtomCache atom_cache_;
111 118
112 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); 119 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux);
113 }; 120 };
114 121
115 } // namespace aura 122 } // namespace aura
116 123
117 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 124 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/root_window_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698