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

Unified Diff: ash/host/ash_window_tree_host_x11.h

Issue 280833002: Re-land "Issue 191223007: Move touch CTM from X into Chrome" (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: adding missing file again 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/ash_window_tree_host_x11.h
diff --git a/ash/host/ash_window_tree_host_x11.h b/ash/host/ash_window_tree_host_x11.h
index f7939f2694cb9410e6d4dee877d0f473f0339c2d..539f8938d6b7ae96f8300fc08191dcfdaec6ccc9 100644
--- a/ash/host/ash_window_tree_host_x11.h
+++ b/ash/host/ash_window_tree_host_x11.h
@@ -32,6 +32,7 @@ class ASH_EXPORT AshWindowTreeHostX11 : public AshWindowTreeHost,
scoped_ptr<RootWindowTransformer> transformer) OVERRIDE;
virtual gfx::Insets GetHostInsets() const OVERRIDE;
virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE;
+ virtual void UpdateDisplayID(int64 id1, int64 id2) OVERRIDE;
// aura::WindowTreehost:
virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
@@ -43,6 +44,7 @@ class ASH_EXPORT AshWindowTreeHostX11 : public AshWindowTreeHost,
// aura::WindowTreeHostX11:
virtual void OnConfigureNotify() OVERRIDE;
+ virtual bool CanDispatchEvent(const ui::PlatformEvent& event) OVERRIDE;
virtual void TranslateAndDispatchLocatedEvent(ui::LocatedEvent* event)
OVERRIDE;
@@ -50,24 +52,21 @@ class ASH_EXPORT AshWindowTreeHostX11 : public AshWindowTreeHost,
virtual void OnWindowInitialized(aura::Window* window) OVERRIDE;
virtual void OnHostInitialized(aura::WindowTreeHost* host) OVERRIDE;
- class TouchEventCalibrate;
-
- // Update is_internal_display_ based on the current state.
- void UpdateIsInternalDisplay();
-
// Set the CrOS touchpad "tap paused" property. It is used to temporarily
// turn off the Tap-to-click feature when the mouse pointer is invisible.
void SetCrOSTapPaused(bool state);
- // True if the root host resides on the internal display
- bool is_internal_display_;
-
scoped_ptr<XID[]> pointer_barriers_;
- scoped_ptr<TouchEventCalibrate> touch_calibrate_;
-
TransformerHelper transformer_helper_;
+ // The display IDs associated with this root window.
+ // In single monitor or extended mode dual monitor case, the root window
+ // is associated with one display.
+ // In mirror mode dual monitors case, the root window is associated with
+ // both displays.
+ std::pair<int64, int64> display_ids_;
+
DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11);
};
« 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