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

Unified Diff: ui/aura/monitor_change_observer_x11.h

Issue 9808010: Keep the mouse cursor within desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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: ui/aura/monitor_change_observer_x11.h
diff --git a/ui/aura/monitor_change_observer_x11.h b/ui/aura/monitor_change_observer_x11.h
deleted file mode 100644
index 1c4a323f10f7949c6a4047d5ba739b3b81d1c7ad..0000000000000000000000000000000000000000
--- a/ui/aura/monitor_change_observer_x11.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_AURA_MONITOR_CHANGE_OBSERVER_H
-#define UI_AURA_MONITOR_CHANGE_OBSERVER_H
-#pragma once
-
-#include <X11/Xlib.h>
-
-// Xlib.h defines RootWindow.
-#undef RootWindow
-
-#include "base/basictypes.h"
-#include "ui/aura/aura_export.h"
-
-namespace aura {
-
-// An object that observes changes in monitor configuration and
-// update MonitorManagers.
-class AURA_EXPORT MonitorChangeObserverX11 {
- public:
- MonitorChangeObserverX11();
- ~MonitorChangeObserverX11();
-
- bool Dispatch(const XEvent* event);
-
- // Reads monitor configurations from the system and notifies
- // |monitor_manager_| about the change.
- void NotifyMonitorChange();
-
- private:
- Display* xdisplay_;
-
- ::Window x_root_window_;
-
- int xrandr_event_base_;
-
- DISALLOW_COPY_AND_ASSIGN(MonitorChangeObserverX11);
-};
-
-} // namespace aura
-
-#endif // UI_AURA_MONITOR_CHANGE_OBSERVER_H

Powered by Google App Engine
This is Rietveld 408576698