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

Unified Diff: ui/aura/desktop.h

Issue 8240006: Use a mocked compositor for unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/aura/desktop.h
diff --git a/ui/aura/desktop.h b/ui/aura/desktop.h
index 521876a273e99f7a1d353e75d33d505681d616d6..ec60431271fcac0245e17e04d363308ac73b20ed 100644
--- a/ui/aura/desktop.h
+++ b/ui/aura/desktop.h
@@ -70,10 +70,12 @@ class AURA_EXPORT Desktop : public ui::CompositorDelegate {
Window* window() { return window_.get(); }
- static void set_compositor_factory_for_testing(ui::Compositor*(*factory)()) {
+ static void set_compositor_factory_for_testing(
+ ui::Compositor*(*factory)(ui::CompositorDelegate* owner)) {
compositor_factory_ = factory;
}
- static ui::Compositor* (*compositor_factory())() {
+ static ui::Compositor* (*compositor_factory())(
+ ui::CompositorDelegate *owner) {
return compositor_factory_;
}
danakj 2011/10/14 15:15:13 Since this is in ui::Compositor now, it can just u
@@ -120,7 +122,7 @@ class AURA_EXPORT Desktop : public ui::CompositorDelegate {
base::WeakPtrFactory<Desktop> schedule_paint_factory_;
// Factory used to create Compositors. Settable by tests.
- static ui::Compositor*(*compositor_factory_)();
+ static ui::Compositor*(*compositor_factory_)(ui::CompositorDelegate* owner);
Window* active_window_;

Powered by Google App Engine
This is Rietveld 408576698