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

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: 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') | ui/aura/root_window_host_linux.cc » ('J')
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 15 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/root_window_host_linux.cc » ('j') | ui/aura/root_window_host_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698