| 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 #include "ui/compositor/test/compositor_test_support.h" | 5 #include "ui/compositor/test/compositor_test_support.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 9 #include "webkit/glue/webkitplatformsupport_impl.h" | 9 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 | 12 |
| 13 class CompositorTestPlatformSupport: | 13 class CompositorTestPlatformSupport: |
| 14 public NON_EXPORTED_BASE(webkit_glue::WebKitPlatformSupportImpl) { | 14 public NON_EXPORTED_BASE(webkit_glue::WebKitPlatformSupportImpl) { |
| 15 public: | 15 public: |
| 16 virtual string16 GetLocalizedString(int message_id) OVERRIDE { | 16 virtual string16 GetLocalizedString(int message_id) OVERRIDE { |
| 17 return string16(); | 17 return string16(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE { | 20 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE { |
| 21 return base::StringPiece(); | 21 return base::StringPiece(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 virtual base::StringPiece GetImageResource(int resource_id, |
| 25 float scale_factor) OVERRIDE { |
| 26 return base::StringPiece(); |
| 27 } |
| 28 |
| 24 virtual void GetPlugins( | 29 virtual void GetPlugins( |
| 25 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE { | 30 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE { |
| 26 } | 31 } |
| 27 | 32 |
| 28 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( | 33 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( |
| 29 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) | 34 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) |
| 30 OVERRIDE { | 35 OVERRIDE { |
| 31 NOTREACHED(); | 36 NOTREACHED(); |
| 32 return NULL; | 37 return NULL; |
| 33 } | 38 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 49 } | 54 } |
| 50 | 55 |
| 51 void CompositorTestSupport::Terminate() { | 56 void CompositorTestSupport::Terminate() { |
| 52 DCHECK(g_webkit_support); | 57 DCHECK(g_webkit_support); |
| 53 WebKit::shutdown(); | 58 WebKit::shutdown(); |
| 54 delete g_webkit_support; | 59 delete g_webkit_support; |
| 55 g_webkit_support = NULL; | 60 g_webkit_support = NULL; |
| 56 } | 61 } |
| 57 | 62 |
| 58 } // namespace ui | 63 } // namespace ui |
| OLD | NEW |