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

Unified Diff: gpu/ipc/common/dialog_surface_lookup.h

Issue 2178973004: DialogSurfaceManager implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved jni out of content/app Created 4 years, 5 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: gpu/ipc/common/dialog_surface_lookup.h
diff --git a/gpu/ipc/common/dialog_surface_lookup.h b/gpu/ipc/common/dialog_surface_lookup.h
new file mode 100644
index 0000000000000000000000000000000000000000..27d1895f7cf1ec22da4ef781c2d0e662bb88c28c
--- /dev/null
+++ b/gpu/ipc/common/dialog_surface_lookup.h
@@ -0,0 +1,34 @@
+// Copyright 2016 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.
+
+#ifndef GPU_IPC_COMMON_DIALOG_SURFACE_LOOKUP_H_
+#define GPU_IPC_COMMON_DIALOG_SURFACE_LOOKUP_H_
+
+#include "base/macros.h"
+#include "gpu/gpu_export.h"
+
+namespace gpu {
+
+// This class provides an interface to look up the browser-based Dialog
+// Surface manager.
+class GPU_EXPORT DialogSurfaceLookup {
+ public:
+ DialogSurfaceLookup() {}
+ virtual ~DialogSurfaceLookup() {}
+
+ static DialogSurfaceLookup* GetInstance();
+ static void InitInstance(DialogSurfaceLookup* lookup);
+
+#if defined(OS_ANDROID)
watk 2016/07/26 21:34:30 Shouldn't we only compile this on Android?
liberato (no reviews please) 2016/07/26 22:49:15 Done.
+ virtual base::android::ScopedJavaLocalRef<jobject>
+ GetDialogSurfaceManager() = 0;
+#endif
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DialogSurfaceLookup);
+};
+
+} // namespace gpu
+
+#endif // GPU_IPC_COMMON_DIALOG_SURFACE_LOOKUP_H_

Powered by Google App Engine
This is Rietveld 408576698