OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ |
6 #define CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "ui/base/layout.h" | 10 #include "ui/base/layout.h" |
11 #include "webkit/glue/webkitplatformsupport_impl.h" | 11 #include "webkit/glue/webkitplatformsupport_impl.h" |
12 | 12 |
| 13 namespace content { |
13 class GpuChannelHostFactory; | 14 class GpuChannelHostFactory; |
14 | 15 |
15 namespace content { | |
16 | |
17 // This is a specialization of WebKitPlatformSupportImpl that implements the | 16 // This is a specialization of WebKitPlatformSupportImpl that implements the |
18 // embedder functions in terms of ContentClient. | 17 // embedder functions in terms of ContentClient. |
19 class CONTENT_EXPORT WebKitPlatformSupportImpl | 18 class CONTENT_EXPORT WebKitPlatformSupportImpl |
20 : NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) { | 19 : NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) { |
21 public: | 20 public: |
22 typedef WebKit::WebGraphicsContext3D* (OffscreenContextFactory)(); | 21 typedef WebKit::WebGraphicsContext3D* (OffscreenContextFactory)(); |
23 | 22 |
24 WebKitPlatformSupportImpl(); | 23 WebKitPlatformSupportImpl(); |
25 virtual ~WebKitPlatformSupportImpl(); | 24 virtual ~WebKitPlatformSupportImpl(); |
26 | 25 |
(...skipping 15 matching lines...) Expand all Loading... |
42 static void SetOffscreenContextFactoryForTest( | 41 static void SetOffscreenContextFactoryForTest( |
43 OffscreenContextFactory factory); | 42 OffscreenContextFactory factory); |
44 | 43 |
45 protected: | 44 protected: |
46 virtual GpuChannelHostFactory* GetGpuChannelHostFactory(); | 45 virtual GpuChannelHostFactory* GetGpuChannelHostFactory(); |
47 }; | 46 }; |
48 | 47 |
49 } // namespace content | 48 } // namespace content |
50 | 49 |
51 #endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ | 50 #endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |