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

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: missed views_test_base.cc 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 d25923e7acbe10b5ae4c37d89774ef539eb9e822..c51489dca04b328e0fa0340bd1f454dfdea823ef 100644
--- a/ui/aura/desktop.h
+++ b/ui/aura/desktop.h
@@ -74,13 +74,6 @@ class AURA_EXPORT Desktop : public ui::CompositorDelegate {
Window* window() { return window_.get(); }
- static void set_compositor_factory_for_testing(ui::Compositor*(*factory)()) {
- compositor_factory_ = factory;
- }
- static ui::Compositor* (*compositor_factory())() {
- return compositor_factory_;
- }
-
// Sets the active window to |window| and the focused window to |to_focus|.
// If |to_focus| is NULL, |window| is focused.
void SetActiveWindow(Window* window, Window* to_focus);
@@ -127,9 +120,6 @@ class AURA_EXPORT Desktop : public ui::CompositorDelegate {
// Used to schedule painting.
base::WeakPtrFactory<Desktop> schedule_paint_factory_;
- // Factory used to create Compositors. Settable by tests.
- static ui::Compositor*(*compositor_factory_)();
-
Window* active_window_;
// Last location seen in a mouse event.

Powered by Google App Engine
This is Rietveld 408576698