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/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" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 return ui::POST_DISPATCH_PERFORM_DEFAULT; | 102 return ui::POST_DISPATCH_PERFORM_DEFAULT; |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 delegate_->NotifyDisplayObservers(); | 106 delegate_->NotifyDisplayObservers(); |
107 | 107 |
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 scoped_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 |