| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/display/chromeos/x11/native_display_event_dispatcher_x11.h" | 5 #include "ui/display/manager/chromeos/x11/native_display_event_dispatcher_x11.h" |
| 6 | 6 |
| 7 #include <X11/extensions/Xrandr.h> | 7 #include <X11/extensions/Xrandr.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/time/default_tick_clock.h" | 10 #include "base/time/default_tick_clock.h" |
| 11 #include "ui/display/chromeos/x11/display_mode_x11.h" | 11 #include "ui/display/manager/chromeos/x11/display_mode_x11.h" |
| 12 #include "ui/display/chromeos/x11/display_snapshot_x11.h" | 12 #include "ui/display/manager/chromeos/x11/display_snapshot_x11.h" |
| 13 #include "ui/events/platform/platform_event_source.h" | 13 #include "ui/events/platform/platform_event_source.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 | 16 |
| 17 // static | 17 // static |
| 18 const int NativeDisplayEventDispatcherX11::kUseCacheAfterStartupMs = 7000; | 18 const int NativeDisplayEventDispatcherX11::kUseCacheAfterStartupMs = 7000; |
| 19 | 19 |
| 20 NativeDisplayEventDispatcherX11::NativeDisplayEventDispatcherX11( | 20 NativeDisplayEventDispatcherX11::NativeDisplayEventDispatcherX11( |
| 21 NativeDisplayDelegateX11::HelperDelegate* delegate, | 21 NativeDisplayDelegateX11::HelperDelegate* delegate, |
| 22 int xrandr_event_base) | 22 int xrandr_event_base) |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 return ui::POST_DISPATCH_PERFORM_DEFAULT; | 108 return ui::POST_DISPATCH_PERFORM_DEFAULT; |
| 109 } | 109 } |
| 110 | 110 |
| 111 void NativeDisplayEventDispatcherX11::SetTickClockForTest( | 111 void NativeDisplayEventDispatcherX11::SetTickClockForTest( |
| 112 std::unique_ptr<base::TickClock> tick_clock) { | 112 std::unique_ptr<base::TickClock> tick_clock) { |
| 113 tick_clock_ = std::move(tick_clock); | 113 tick_clock_ = std::move(tick_clock); |
| 114 startup_time_ = tick_clock_->NowTicks(); | 114 startup_time_ = tick_clock_->NowTicks(); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace ui | 117 } // namespace ui |
| OLD | NEW |