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

Unified Diff: ui/compositor/compositor_retriever_delegate.cc

Issue 23726015: All together now (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_cap
Patch Set: Created 7 years, 4 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
« no previous file with comments | « ui/compositor/compositor_retriever_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor_retriever_delegate.cc
diff --git a/ui/compositor/compositor_retriever_delegate.cc b/ui/compositor/compositor_retriever_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6a0c4676b36bd194f2344af6c57fad6a5264e61e
--- /dev/null
+++ b/ui/compositor/compositor_retriever_delegate.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/compositor/compositor_retriever_delegate.h"
+
+#include "base/logging.h"
+
+namespace ui {
+
+namespace {
+
+CompositorRetrieverDelegate* g_compositor_retriever_delegate = NULL;
+
+} // anonymous namespace
+
+// static
+void CompositorRetrieverDelegate::SetDelegate(
+ CompositorRetrieverDelegate* delegate) {
+ DCHECK(!g_compositor_retriever_delegate);
+ g_compositor_retriever_delegate = delegate;
+}
+
+// static
+CompositorRetrieverDelegate* CompositorRetrieverDelegate::GetInstance() {
+ return g_compositor_retriever_delegate;
+}
+
+} // namespace content
« no previous file with comments | « ui/compositor/compositor_retriever_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698