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

Side by Side Diff: ui/snapshot/screenshot_grabber.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 #ifndef UI_SNAPSHOT_SCREENSHOT_GRABBER_H_ 5 #ifndef UI_SNAPSHOT_SCREENSHOT_GRABBER_H_
6 #define UI_SNAPSHOT_SCREENSHOT_GRABBER_H_ 6 #define UI_SNAPSHOT_SCREENSHOT_GRABBER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // A weak pointer to the screenshot taker client. 84 // A weak pointer to the screenshot taker client.
85 ScreenshotGrabberDelegate* client_; 85 ScreenshotGrabberDelegate* client_;
86 86
87 // The timestamp when the screenshot task was issued last time. 87 // The timestamp when the screenshot task was issued last time.
88 base::TimeTicks last_screenshot_timestamp_; 88 base::TimeTicks last_screenshot_timestamp_;
89 89
90 // Task runner for blocking tasks. 90 // Task runner for blocking tasks.
91 scoped_refptr<base::TaskRunner> blocking_task_runner_; 91 scoped_refptr<base::TaskRunner> blocking_task_runner_;
92 92
93 ObserverList<ScreenshotGrabberObserver> observers_; 93 base::ObserverList<ScreenshotGrabberObserver> observers_;
94 base::WeakPtrFactory<ScreenshotGrabber> factory_; 94 base::WeakPtrFactory<ScreenshotGrabber> factory_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(ScreenshotGrabber); 96 DISALLOW_COPY_AND_ASSIGN(ScreenshotGrabber);
97 }; 97 };
98 98
99 } // namespace ui 99 } // namespace ui
100 100
101 #endif // UI_SNAPSHOT_SCREENSHOT_GRABBER_H_ 101 #endif // UI_SNAPSHOT_SCREENSHOT_GRABBER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_native_display_delegate.h ('k') | ui/views/animation/bounds_animator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698