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

Unified Diff: webkit/support/platform_support_win.cc

Issue 8602002: Move some webkit_glue embedder functions into WebKitPlatformSupport virtual methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright year Created 9 years, 1 month 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 | « webkit/support/platform_support_mac.mm ('k') | webkit/support/test_webkit_platform_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/platform_support_win.cc
diff --git a/webkit/support/platform_support_win.cc b/webkit/support/platform_support_win.cc
index fb5126e5796d4d19eed640f13ffa5850c47bba71..0d5eee286472165727c2391531e90f13ae4f496f 100644
--- a/webkit/support/platform_support_win.cc
+++ b/webkit/support/platform_support_win.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -14,6 +14,7 @@
#include "base/win/resource_util.h"
#include "grit/webkit_chromium_resources.h"
#include "grit/webkit_resources.h"
+#include "webkit/support/test_webkit_platform_support.h"
#define MAX_LOADSTRING 100
@@ -60,9 +61,7 @@ void AfterShutdown() {
} // namespace webkit_support
-namespace webkit_glue {
-
-string16 GetLocalizedString(int message_id) {
+string16 TestWebKitPlatformSupport::GetLocalizedString(int message_id) {
wchar_t localized[MAX_LOADSTRING];
int length = ::LoadString(::GetModuleHandle(NULL), message_id,
localized, MAX_LOADSTRING);
@@ -73,7 +72,7 @@ string16 GetLocalizedString(int message_id) {
return string16(localized, length);
}
-base::StringPiece GetDataResource(int resource_id) {
+base::StringPiece TestWebKitPlatformSupport::GetDataResource(int resource_id) {
switch (resource_id) {
case IDR_BROKENIMAGE: {
// Use webkit's broken image icon (16x16)
@@ -103,5 +102,3 @@ base::StringPiece GetDataResource(int resource_id) {
return ResourceProvider(resource_id);
}
-
-} // namespace webkit_glue
« no previous file with comments | « webkit/support/platform_support_mac.mm ('k') | webkit/support/test_webkit_platform_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698