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

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

Issue 191223007: Move touch CTM from X into Chrome (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rework Created 6 years, 7 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
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_WINDOW_TREE_HOST_X11_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_X11_H_
6 #define UI_AURA_WINDOW_TREE_HOST_X11_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_X11_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 #include "ui/aura/window_tree_host.h" 10 #include "ui/aura/window_tree_host.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; 57 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE;
58 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; 58 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE;
59 59
60 // ui::EventSource overrides. 60 // ui::EventSource overrides.
61 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; 61 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE;
62 62
63 protected: 63 protected:
64 // Called when X Configure Notify event is recevied. 64 // Called when X Configure Notify event is recevied.
65 virtual void OnConfigureNotify(); 65 virtual void OnConfigureNotify();
66 66
67 // Translates the native mouse location into screen coordinates and and 67 // Translates the native mouse location into screen coordinates and
68 // dispatches the event via WindowEventDispatcher. 68 // dispatches the event via WindowEventDispatcher.
69 virtual void TranslateAndDispatchLocatedEvent(ui::LocatedEvent* event); 69 virtual void TranslateAndDispatchLocatedEvent(ui::LocatedEvent* event);
70 70
71 ::Window x_root_window() { return x_root_window_; } 71 ::Window x_root_window() { return x_root_window_; }
72 XDisplay* xdisplay() { return xdisplay_; } 72 XDisplay* xdisplay() { return xdisplay_; }
73 const gfx::Rect bounds() const { return bounds_; } 73 const gfx::Rect bounds() const { return bounds_; }
74 ui::X11AtomCache* atom_cache() { return &atom_cache_; } 74 ui::X11AtomCache* atom_cache() { return &atom_cache_; }
75 75
76 private: 76 private:
77 bool IsTouchEventTargetingThisRootWindow(XEvent* xev);
78
77 // Dispatches XI2 events. Note that some events targetted for the X root 79 // Dispatches XI2 events. Note that some events targetted for the X root
78 // window are dispatched to the aura root window (e.g. touch events after 80 // window are dispatched to the aura root window (e.g. touch events after
79 // calibration). 81 // calibration).
80 void DispatchXI2Event(const base::NativeEvent& event); 82 void DispatchXI2Event(const base::NativeEvent& event);
81 83
82 // Returns true if there's an X window manager present... in most cases. Some 84 // Returns true if there's an X window manager present... in most cases. Some
83 // window managers (notably, ion3) don't implement enough of ICCCM for us to 85 // window managers (notably, ion3) don't implement enough of ICCCM for us to
84 // detect that they're there. 86 // detect that they're there.
85 bool IsWindowManagerPresent(); 87 bool IsWindowManagerPresent();
86 88
(...skipping 25 matching lines...) Expand all
112 namespace test { 114 namespace test {
113 115
114 // Set the default value of the override redirect flag used to 116 // Set the default value of the override redirect flag used to
115 // create a X window for WindowTreeHostX11. 117 // create a X window for WindowTreeHostX11.
116 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); 118 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect);
117 119
118 } // namespace test 120 } // namespace test
119 } // namespace aura 121 } // namespace aura
120 122
121 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_ 123 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698