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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h

Issue 380943003: Do not release capture when transferring capture between Chrome windows on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
index 810cf35366df101765cd0bae3b7e200cb63b61cb..1c08221c752c442746c1c4a68095263c42827af8 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
@@ -37,7 +37,6 @@ class DesktopDragDropClientAuraX11;
class DesktopDispatcherClient;
class DesktopWindowTreeHostObserverX11;
class X11DesktopWindowMoveClient;
-class X11ScopedCapture;
class X11WindowEventFilter;
class VIEWS_EXPORT DesktopWindowTreeHostX11
@@ -202,10 +201,6 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
// Sets whether the window's borders are provided by the window manager.
void SetUseNativeFrame(bool use_native_frame);
- // Called when another DRWHL takes capture, or when capture is released
- // entirely.
- void OnCaptureReleased();
-
// Dispatches a mouse event, taking mouse capture into account. If a
// different host has capture, we translate the event to its coordinate space
// and dispatch it to that host instead.
@@ -323,19 +318,14 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
// The size of the window manager provided borders (if any).
gfx::Insets native_window_frame_borders_;
- // The current root window host that has capture. While X11 has something
- // like Windows SetCapture()/ReleaseCapture(), it is entirely implicit and
- // there are no notifications when this changes. We need to track this so we
- // can notify widgets when they have lost capture, which controls a bunch of
- // things in views like hiding menus.
+ // The current DesktopWindowTreeHostX11 which has capture. Set synchronously
+ // when capture is requested via SetCapture().
static DesktopWindowTreeHostX11* g_current_capture;
// A list of all (top-level) windows that have been created but not yet
// destroyed.
static std::list<XID>* open_windows_;
- scoped_ptr<X11ScopedCapture> x11_capture_;
-
base::string16 window_title_;
// Whether we currently are flashing our frame. This feature is implemented
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698