| 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
|
| index 1c4a323f10f7949c6a4047d5ba739b3b81d1c7ad..f9a9ecd684b20548c7c76ab8e405d763834a469e 100644
|
| --- a/ui/aura/monitor_change_observer_x11.h
|
| +++ b/ui/aura/monitor_change_observer_x11.h
|
| @@ -2,8 +2,8 @@
|
| // 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
|
| +#ifndef UI_AURA_MONITOR_CHANGE_OBSERVER_X11_H
|
| +#define UI_AURA_MONITOR_CHANGE_OBSERVER_X11_H
|
| #pragma once
|
|
|
| #include <X11/Xlib.h>
|
| @@ -12,18 +12,21 @@
|
| #undef RootWindow
|
|
|
| #include "base/basictypes.h"
|
| -#include "ui/aura/aura_export.h"
|
| +#include "base/message_loop.h"
|
|
|
| namespace aura {
|
| +namespace internal {
|
|
|
| // An object that observes changes in monitor configuration and
|
| // update MonitorManagers.
|
| -class AURA_EXPORT MonitorChangeObserverX11 {
|
| +class MonitorChangeObserverX11 : public MessageLoop::Dispatcher {
|
| public:
|
| MonitorChangeObserverX11();
|
| ~MonitorChangeObserverX11();
|
|
|
| - bool Dispatch(const XEvent* event);
|
| + // Overridden from Dispatcher overrides:
|
| + virtual base::MessagePumpDispatcher::DispatchStatus Dispatch(
|
| + XEvent* xev) OVERRIDE;
|
|
|
| // Reads monitor configurations from the system and notifies
|
| // |monitor_manager_| about the change.
|
| @@ -39,6 +42,7 @@ class AURA_EXPORT MonitorChangeObserverX11 {
|
| DISALLOW_COPY_AND_ASSIGN(MonitorChangeObserverX11);
|
| };
|
|
|
| +} // namespace internal
|
| } // namespace aura
|
|
|
| -#endif // UI_AURA_MONITOR_CHANGE_OBSERVER_H
|
| +#endif // UI_AURA_MONITOR_CHANGE_OBSERVER_X11_H
|
|
|