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

Unified 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, 8 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/test/compositor_test_support.cc
diff --git a/ui/gfx/compositor/test/compositor_test_support.cc b/ui/gfx/compositor/test/compositor_test_support.cc
deleted file mode 100644
index ba76f62abc6f0ce581145dbff7aafa00c6fdf80b..0000000000000000000000000000000000000000
--- a/ui/gfx/compositor/test/compositor_test_support.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) 2012 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.
-
-#include "ui/gfx/compositor/test/compositor_test_support.h"
-
-#include "base/compiler_specific.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
-#include "webkit/glue/webkitplatformsupport_impl.h"
-
-namespace ui {
-
-class CompositorTestPlatformSupport:
- public NON_EXPORTED_BASE(webkit_glue::WebKitPlatformSupportImpl) {
- public:
- virtual string16 GetLocalizedString(int message_id) OVERRIDE {
- return string16();
- }
-
- virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE {
- return base::StringPiece();
- }
-
- virtual void GetPlugins(
- bool refresh, std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE {
- }
-
- virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
- const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
- OVERRIDE {
- NOTREACHED();
- return NULL;
- }
-
- virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge(
- WebKit::WebSocketStreamHandle* handle,
- webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE {
- NOTREACHED();
- return NULL;
- }
-};
-
-static CompositorTestPlatformSupport* g_webkit_support;
-
-void CompositorTestSupport::Initialize() {
- DCHECK(!g_webkit_support);
- g_webkit_support = new CompositorTestPlatformSupport;
- WebKit::initialize(g_webkit_support);
-}
-
-void CompositorTestSupport::Terminate() {
- DCHECK(g_webkit_support);
- WebKit::shutdown();
- delete g_webkit_support;
- g_webkit_support = NULL;
-}
-
-} // namespace ui
« 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