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

Side by Side Diff: ui/gfx/compositor/test/compositor_test_support.cc

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/gfx/compositor/test/compositor_test_support.h"
6
7 #include "base/compiler_specific.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
9 #include "webkit/glue/webkitplatformsupport_impl.h"
10
11 namespace ui {
12
13 class CompositorTestPlatformSupport:
14 public NON_EXPORTED_BASE(webkit_glue::WebKitPlatformSupportImpl) {
15 public:
16 virtual string16 GetLocalizedString(int message_id) OVERRIDE {
17 return string16();
18 }
19
20 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE {
21 return base::StringPiece();
22 }
23
24 virtual void GetPlugins(
25 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE {
26 }
27
28 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
29 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
30 OVERRIDE {
31 NOTREACHED();
32 return NULL;
33 }
34
35 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge(
36 WebKit::WebSocketStreamHandle* handle,
37 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE {
38 NOTREACHED();
39 return NULL;
40 }
41 };
42
43 static CompositorTestPlatformSupport* g_webkit_support;
44
45 void CompositorTestSupport::Initialize() {
46 DCHECK(!g_webkit_support);
47 g_webkit_support = new CompositorTestPlatformSupport;
48 WebKit::initialize(g_webkit_support);
49 }
50
51 void CompositorTestSupport::Terminate() {
52 DCHECK(g_webkit_support);
53 WebKit::shutdown();
54 delete g_webkit_support;
55 g_webkit_support = NULL;
56 }
57
58 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/compositor/test/compositor_test_support.h ('k') | ui/gfx/compositor/test/test_compositor_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698