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

Unified Diff: ui/aura/monitor_change_observer_x11.cc

Issue 10407081: Multiple dispatchers for root windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: renamed methods, fixed comment Created 8 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 | « ui/aura/dispatcher_linux.cc ('k') | ui/aura/root_window_host_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/monitor_change_observer_x11.cc
diff --git a/ui/aura/monitor_change_observer_x11.cc b/ui/aura/monitor_change_observer_x11.cc
index 59a0ebe51bd2a0a57264aef05f85d7280d091a81..7673f812cba02236eea453a90491ec5122750be7 100644
--- a/ui/aura/monitor_change_observer_x11.cc
+++ b/ui/aura/monitor_change_observer_x11.cc
@@ -52,15 +52,13 @@ MonitorChangeObserverX11::MonitorChangeObserverX11()
XRRSelectInput(xdisplay_, x_root_window_, RRScreenChangeNotifyMask);
int error_base_ignored;
XRRQueryExtension(xdisplay_, &xrandr_event_base_, &error_base_ignored);
- static_cast<DispatcherLinux*>(
- Env::GetInstance()->GetDispatcher())->
- WindowDispatcherCreated(x_root_window_, this);
+ static_cast<DispatcherLinux*>(Env::GetInstance()->GetDispatcher())->
+ AddDispatcherForRootWindow(this);
}
MonitorChangeObserverX11::~MonitorChangeObserverX11() {
- static_cast<DispatcherLinux*>(
- Env::GetInstance()->GetDispatcher())->
- WindowDispatcherDestroying(x_root_window_);
+ static_cast<DispatcherLinux*>(Env::GetInstance()->GetDispatcher())->
+ RemoveDispatcherForRootWindow(this);
}
bool MonitorChangeObserverX11::Dispatch(const base::NativeEvent& event) {
« no previous file with comments | « ui/aura/dispatcher_linux.cc ('k') | ui/aura/root_window_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698