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

Side by Side Diff: ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc

Issue 670623002: Change base::TickClock to a ref counted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
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 "base/time/default_tick_clock.h" 5 #include "base/time/default_tick_clock.h"
6 #include "ui/display/chromeos/x11/native_display_event_dispatcher_x11.h" 6 #include "ui/display/chromeos/x11/native_display_event_dispatcher_x11.h"
7 #include "ui/display/chromeos/x11/display_mode_x11.h" 7 #include "ui/display/chromeos/x11/display_mode_x11.h"
8 #include "ui/display/chromeos/x11/display_snapshot_x11.h" 8 #include "ui/display/chromeos/x11/display_snapshot_x11.h"
9 #include "ui/events/platform/platform_event_source.h" 9 #include "ui/events/platform/platform_event_source.h"
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 return ui::POST_DISPATCH_PERFORM_DEFAULT; 92 return ui::POST_DISPATCH_PERFORM_DEFAULT;
93 } 93 }
94 } 94 }
95 95
96 delegate_->NotifyDisplayObservers(); 96 delegate_->NotifyDisplayObservers();
97 97
98 return ui::POST_DISPATCH_PERFORM_DEFAULT; 98 return ui::POST_DISPATCH_PERFORM_DEFAULT;
99 } 99 }
100 100
101 void NativeDisplayEventDispatcherX11::SetTickClockForTest( 101 void NativeDisplayEventDispatcherX11::SetTickClockForTest(
102 scoped_ptr<base::TickClock> tick_clock) { 102 const scoped_refptr<base::TickClock>& tick_clock) {
103 tick_clock_ = tick_clock.Pass(); 103 tick_clock_.swap(tick_clock);
Daniel Erat 2014/10/21 17:01:27 thanks, but i think the swap() got missed here, ri
rkc 2014/10/21 18:29:02 Done.
104 startup_time_ = tick_clock_->NowTicks(); 104 startup_time_ = tick_clock_->NowTicks();
105 } 105 }
106 106
107 } // namespace ui 107 } // namespace ui
OLDNEW
« no previous file with comments | « ui/display/chromeos/x11/native_display_event_dispatcher_x11.h ('k') | ui/events/test/event_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698