OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef GPU_IPC_COMMON_DIALOG_SURFACE_LOOKUP_H_ |
| 6 #define GPU_IPC_COMMON_DIALOG_SURFACE_LOOKUP_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "gpu/gpu_export.h" |
| 10 |
| 11 namespace gpu { |
| 12 |
| 13 // This class provides an interface to look up the browser-based Dialog |
| 14 // Surface manager. |
| 15 class GPU_EXPORT DialogSurfaceLookup { |
| 16 public: |
| 17 DialogSurfaceLookup() {} |
| 18 virtual ~DialogSurfaceLookup() {} |
| 19 |
| 20 static DialogSurfaceLookup* GetInstance(); |
| 21 static void InitInstance(DialogSurfaceLookup* lookup); |
| 22 |
| 23 #if defined(OS_ANDROID) |
| 24 virtual base::android::ScopedJavaLocalRef<jobject> |
| 25 GetDialogSurfaceManager() = 0; |
| 26 #endif |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(DialogSurfaceLookup); |
| 30 }; |
| 31 |
| 32 } // namespace gpu |
| 33 |
| 34 #endif // GPU_IPC_COMMON_DIALOG_SURFACE_LOOKUP_H_ |
OLD | NEW |