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

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

Issue 9958152: Consolidate win/x dispatchers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync, addressed comments Created 8 years, 8 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 | « ui/aura/monitor_change_observer_x11.cc ('k') | 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 #pragma once 7 #pragma once
8 8
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 10
11 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. 11 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
12 #undef RootWindow 12 #undef RootWindow
13 13
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "ui/aura/root_window_host.h" 16 #include "ui/aura/root_window_host.h"
17 #include "ui/gfx/rect.h" 17 #include "ui/gfx/rect.h"
18 18
19 namespace aura { 19 namespace aura {
20 20
21 class RootWindowHostLinux : public RootWindowHost, 21 class RootWindowHostLinux : public RootWindowHost,
22 public MessageLoop::Dispatcher { 22 public MessageLoop::Dispatcher {
23 public: 23 public:
24 explicit RootWindowHostLinux(const gfx::Rect& bounds); 24 explicit RootWindowHostLinux(const gfx::Rect& bounds);
25 virtual ~RootWindowHostLinux(); 25 virtual ~RootWindowHostLinux();
26 26
27 // Overridden from Dispatcher overrides: 27 // Overridden from Dispatcher overrides:
28 virtual base::MessagePumpDispatcher::DispatchStatus 28 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
29 Dispatch(XEvent* xev) OVERRIDE;
30 29
31 private: 30 private:
32 // RootWindowHost Overrides. 31 // RootWindowHost Overrides.
33 virtual void SetRootWindow(RootWindow* root_window) OVERRIDE; 32 virtual void SetRootWindow(RootWindow* root_window) OVERRIDE;
34 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 33 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
35 virtual void Show() OVERRIDE; 34 virtual void Show() OVERRIDE;
36 virtual void ToggleFullScreen() OVERRIDE; 35 virtual void ToggleFullScreen() OVERRIDE;
37 virtual gfx::Rect GetBounds() const OVERRIDE; 36 virtual gfx::Rect GetBounds() const OVERRIDE;
38 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 37 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
39 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 38 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool focus_when_shown_; 98 bool focus_when_shown_;
100 99
101 scoped_array<XID> pointer_barriers_; 100 scoped_array<XID> pointer_barriers_;
102 101
103 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); 102 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux);
104 }; 103 };
105 104
106 } // namespace aura 105 } // namespace aura
107 106
108 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 107 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
OLDNEW
« no previous file with comments | « ui/aura/monitor_change_observer_x11.cc ('k') | ui/aura/root_window_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698