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

Unified Diff: ui/views/widget/desktop_aura/x11_window_event_filter.cc

Issue 160573002: Move root_window_host* in aura to window_tree_host*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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/widget/desktop_aura/x11_window_event_filter.h ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/x11_window_event_filter.cc
diff --git a/ui/views/widget/desktop_aura/x11_window_event_filter.cc b/ui/views/widget/desktop_aura/x11_window_event_filter.cc
index f9febf962bc85b47ea83908cc0475c5013e270bd..1336c4653acb743de2d63bf8970b0f4063f0494c 100644
--- a/ui/views/widget/desktop_aura/x11_window_event_filter.cc
+++ b/ui/views/widget/desktop_aura/x11_window_event_filter.cc
@@ -17,7 +17,7 @@
#include "ui/events/event.h"
#include "ui/events/event_utils.h"
#include "ui/gfx/x/x11_types.h"
-#include "ui/views/widget/desktop_aura/desktop_root_window_host.h"
+#include "ui/views/widget/desktop_aura/desktop_window_tree_host.h"
#include "ui/views/widget/native_widget_aura.h"
namespace {
@@ -62,12 +62,12 @@ namespace views {
X11WindowEventFilter::X11WindowEventFilter(
aura::RootWindow* root_window,
- DesktopWindowTreeHost* root_window_host)
+ DesktopWindowTreeHost* window_tree_host)
: xdisplay_(gfx::GetXDisplay()),
xwindow_(root_window->host()->GetAcceleratedWidget()),
x_root_window_(DefaultRootWindow(xdisplay_)),
atom_cache_(xdisplay_, kAtomsToCache),
- root_window_host_(root_window_host),
+ window_tree_host_(window_tree_host),
is_active_(false) {
}
@@ -113,10 +113,10 @@ void X11WindowEventFilter::OnMouseEvent(ui::MouseEvent* event) {
// Our event is a double click in the caption area in a window that can be
// maximized. We are responsible for dispatching this as a minimize/
// maximize on X11 (Windows converts this to min/max events for us).
- if (root_window_host_->IsMaximized())
- root_window_host_->Restore();
+ if (window_tree_host_->IsMaximized())
+ window_tree_host_->Restore();
else
- root_window_host_->Maximize();
+ window_tree_host_->Maximize();
event->SetHandled();
return;
}
« no previous file with comments | « ui/views/widget/desktop_aura/x11_window_event_filter.h ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698