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

Unified Diff: chrome/browser/ui/views/tabs/window_finder_x11.cc

Issue 184903003: Window ownership -> WindowTreeHost (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
Index: chrome/browser/ui/views/tabs/window_finder_x11.cc
diff --git a/chrome/browser/ui/views/tabs/window_finder_x11.cc b/chrome/browser/ui/views/tabs/window_finder_x11.cc
index 65b15ac20cfbbc2256e97147600b8b62ec71fd4d..eeca3e73d4b28d35de7ee55310da9208e9075c5b 100644
--- a/chrome/browser/ui/views/tabs/window_finder_x11.cc
+++ b/chrome/browser/ui/views/tabs/window_finder_x11.cc
@@ -7,7 +7,7 @@
#include "base/debug/trace_event.h"
#include "chrome/browser/ui/host_desktop.h"
#include "ui/aura/window.h"
-#include "ui/aura/window_event_dispatcher.h"
+#include "ui/aura/window_tree_host.h"
#include "ui/base/x/x11_util.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h"
@@ -29,7 +29,7 @@ class BaseWindowFinder : public ui::EnumerateWindowsDelegate {
explicit BaseWindowFinder(const std::set<aura::Window*>& ignore) {
std::set<aura::Window*>::iterator iter;
for (iter = ignore.begin(); iter != ignore.end(); iter++) {
- XID xid = (*iter)->GetDispatcher()->host()->GetAcceleratedWidget();
+ XID xid = (*iter)->GetHost()->GetAcceleratedWidget();
ignore_.insert(xid);
}
}
@@ -142,7 +142,7 @@ class LocalProcessWindowFinder : public BaseWindowFinder {
return false;
// Check if this window is in our process.
- if (!aura::WindowEventDispatcher::GetForAcceleratedWidget(window))
+ if (!aura::WindowTreeHost::GetForAcceleratedWidget(window))
return false;
if (!ui::IsWindowVisible(window))

Powered by Google App Engine
This is Rietveld 408576698