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

Unified Diff: ui/display/chromeos/x11/native_display_event_dispatcher_x11.h

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years 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/display/chromeos/x11/native_display_event_dispatcher_x11.h
diff --git a/ui/display/chromeos/x11/native_display_event_dispatcher_x11.h b/ui/display/chromeos/x11/native_display_event_dispatcher_x11.h
deleted file mode 100644
index 399063eeef6c211c50fac1ead00790d1c6651e22..0000000000000000000000000000000000000000
--- a/ui/display/chromeos/x11/native_display_event_dispatcher_x11.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 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_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_EVENT_DISPATCHER_X11_H_
-#define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_EVENT_DISPATCHER_X11_H_
-
-#include <stdint.h>
-
-#include "base/macros.h"
-#include "base/time/tick_clock.h"
-#include "base/time/time.h"
-#include "ui/display/chromeos/x11/native_display_delegate_x11.h"
-#include "ui/events/platform/platform_event_dispatcher.h"
-
-namespace ui {
-
-// The implementation is interested in the cases of RRNotify events which
-// correspond to output add/remove events. Note that Output add/remove events
-// are sent in response to our own reconfiguration operations so spurious events
-// are common. Spurious events will have no effect.
-class DISPLAY_EXPORT NativeDisplayEventDispatcherX11
- : public ui::PlatformEventDispatcher {
- public:
- NativeDisplayEventDispatcherX11(
- NativeDisplayDelegateX11::HelperDelegate* delegate,
- int xrandr_event_base);
- ~NativeDisplayEventDispatcherX11() override;
-
- // ui::PlatformEventDispatcher:
- bool CanDispatchEvent(const PlatformEvent& event) override;
- uint32_t DispatchEvent(const PlatformEvent& event) override;
-
- void SetTickClockForTest(std::unique_ptr<base::TickClock> tick_clock);
-
- // How long the cached output is valid after startup.
- static const int kUseCacheAfterStartupMs;
-
- private:
- NativeDisplayDelegateX11::HelperDelegate* delegate_; // Not owned.
-
- // The base of the event numbers used to represent XRandr events used in
- // decoding events regarding output add/remove.
- int xrandr_event_base_;
-
- base::TimeTicks startup_time_;
-
- std::unique_ptr<base::TickClock> tick_clock_;
-
- DISALLOW_COPY_AND_ASSIGN(NativeDisplayEventDispatcherX11);
-};
-
-} // namespace ui
-
-#endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_EVENT_DISPATCHER_X11_H_
« no previous file with comments | « ui/display/chromeos/x11/native_display_delegate_x11.cc ('k') | ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698