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

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: fix events/BUILD.gn 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
« no previous file with comments | « ash/touch/touch_transformer_controller_unittest.cc ('k') | ui/aura/window_tree_host_x11.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_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 // Dispatches XI2 events. Note that some events targetted for the X root 77 // Dispatches XI2 events. Note that some events targetted for the X root
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 namespace test { 112 namespace test {
113 113
114 // Set the default value of the override redirect flag used to 114 // Set the default value of the override redirect flag used to
115 // create a X window for WindowTreeHostX11. 115 // create a X window for WindowTreeHostX11.
116 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); 116 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect);
117 117
118 } // namespace test 118 } // namespace test
119 } // namespace aura 119 } // namespace aura
120 120
121 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_ 121 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_
OLDNEW
« no previous file with comments | « ash/touch/touch_transformer_controller_unittest.cc ('k') | ui/aura/window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698