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

Side by Side Diff: ash/host/ash_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/host/ash_window_tree_host.h ('k') | ash/host/ash_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ 5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/host/ash_window_tree_host.h" 9 #include "ash/host/ash_window_tree_host.h"
10 #include "ash/host/transformer_helper.h" 10 #include "ash/host/transformer_helper.h"
(...skipping 12 matching lines...) Expand all
23 virtual ~AshWindowTreeHostX11(); 23 virtual ~AshWindowTreeHostX11();
24 24
25 private: 25 private:
26 // AshWindowTreeHost: 26 // AshWindowTreeHost:
27 virtual void ToggleFullScreen() OVERRIDE; 27 virtual void ToggleFullScreen() OVERRIDE;
28 virtual bool ConfineCursorToRootWindow() OVERRIDE; 28 virtual bool ConfineCursorToRootWindow() OVERRIDE;
29 virtual void UnConfineCursor() OVERRIDE; 29 virtual void UnConfineCursor() OVERRIDE;
30 virtual void SetRootWindowTransformer( 30 virtual void SetRootWindowTransformer(
31 scoped_ptr<RootWindowTransformer> transformer) OVERRIDE; 31 scoped_ptr<RootWindowTransformer> transformer) OVERRIDE;
32 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE; 32 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE;
33 virtual void UpdateDisplayID(int64 id1, int64 id2) OVERRIDE;
33 34
34 // aura::WindowTreehost: 35 // aura::WindowTreehost:
35 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 36 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
36 virtual gfx::Transform GetRootTransform() const OVERRIDE; 37 virtual gfx::Transform GetRootTransform() const OVERRIDE;
37 virtual void SetRootTransform(const gfx::Transform& transform) OVERRIDE; 38 virtual void SetRootTransform(const gfx::Transform& transform) OVERRIDE;
38 virtual gfx::Transform GetInverseRootTransform() const OVERRIDE; 39 virtual gfx::Transform GetInverseRootTransform() const OVERRIDE;
39 virtual void UpdateRootWindowSize(const gfx::Size& host_size) OVERRIDE; 40 virtual void UpdateRootWindowSize(const gfx::Size& host_size) OVERRIDE;
40 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; 41 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE;
41 42
42 // aura::WindowTreeHostX11: 43 // aura::WindowTreeHostX11:
43 virtual void OnConfigureNotify() OVERRIDE; 44 virtual void OnConfigureNotify() OVERRIDE;
45 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) OVERRIDE;
44 virtual void TranslateAndDispatchLocatedEvent(ui::LocatedEvent* event) 46 virtual void TranslateAndDispatchLocatedEvent(ui::LocatedEvent* event)
45 OVERRIDE; 47 OVERRIDE;
46 48
47 // EnvObserver overrides. 49 // EnvObserver overrides.
48 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; 50 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE;
49 virtual void OnHostInitialized(aura::WindowTreeHost* host) OVERRIDE; 51 virtual void OnHostInitialized(aura::WindowTreeHost* host) OVERRIDE;
50 52
51 class TouchEventCalibrate;
52
53 // Update is_internal_display_ based on the current state.
54 void UpdateIsInternalDisplay();
55
56 // Set the CrOS touchpad "tap paused" property. It is used to temporarily 53 // Set the CrOS touchpad "tap paused" property. It is used to temporarily
57 // turn off the Tap-to-click feature when the mouse pointer is invisible. 54 // turn off the Tap-to-click feature when the mouse pointer is invisible.
58 void SetCrOSTapPaused(bool state); 55 void SetCrOSTapPaused(bool state);
59 56
60 // True if the root host resides on the internal display
61 bool is_internal_display_;
62
63 scoped_ptr<XID[]> pointer_barriers_; 57 scoped_ptr<XID[]> pointer_barriers_;
64 58
65 scoped_ptr<TouchEventCalibrate> touch_calibrate_; 59 TransformerHelper transformer_helper_;
66 60
67 TransformerHelper transformer_helper_; 61 // The display IDs associated with this root window.
62 // In single monitor or extended mode dual monitor case, the root window
63 // is associated with one display.
64 // In mirror mode dual monitors case, the root window is associated with
65 // both displays.
66 std::pair<int64, int64> display_ids_;
68 67
69 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11); 68 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11);
70 }; 69 };
71 70
72 } // namespace ash 71 } // namespace ash
73 72
74 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ 73 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_
OLDNEW
« no previous file with comments | « ash/host/ash_window_tree_host.h ('k') | ash/host/ash_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698