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

Side by Side Diff: webkit/support/platform_support_android.cc

Issue 13219005: Replace string16 with base::string16 in src/webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "webkit/support/platform_support.h" 5 #include "webkit/support/platform_support.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/string16.h" 12 #include "base/string16.h.h"
13 #include "base/string_piece.h" 13 #include "base/string_piece.h"
14 #include "base/test/test_support_android.h" 14 #include "base/test/test_support_android.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "grit/webkit_resources.h" 16 #include "grit/webkit_resources.h"
17 #include "media/base/android/media_jni_registrar.h" 17 #include "media/base/android/media_jni_registrar.h"
18 #include "net/android/net_jni_registrar.h" 18 #include "net/android/net_jni_registrar.h"
19 #include "net/android/network_library.h" 19 #include "net/android/network_library.h"
20 #include "ui/android/ui_jni_registrar.h" 20 #include "ui/android/ui_jni_registrar.h"
21 #include "ui/base/resource/resource_bundle.h" 21 #include "ui/base/resource/resource_bundle.h"
22 #include "webkit/support/test_webkit_platform_support.h" 22 #include "webkit/support/test_webkit_platform_support.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 void BeforeShutdown() { 85 void BeforeShutdown() {
86 ResourceBundle::CleanupSharedInstance(); 86 ResourceBundle::CleanupSharedInstance();
87 } 87 }
88 88
89 void AfterShutdown() { 89 void AfterShutdown() {
90 } 90 }
91 91
92 } // namespace webkit_support 92 } // namespace webkit_support
93 93
94 string16 TestWebKitPlatformSupport::GetLocalizedString(int message_id) { 94 base::string16 TestWebKitPlatformSupport::GetLocalizedString(int message_id) {
95 return ResourceBundle::GetSharedInstance().GetLocalizedString(message_id); 95 return ResourceBundle::GetSharedInstance().GetLocalizedString(message_id);
96 } 96 }
97 97
98 base::StringPiece TestWebKitPlatformSupport::GetDataResource( 98 base::StringPiece TestWebKitPlatformSupport::GetDataResource(
99 int resource_id, 99 int resource_id,
100 ui::ScaleFactor scale_factor) { 100 ui::ScaleFactor scale_factor) {
101 base::FilePath resources_path(kDumpRenderTreeDir); 101 base::FilePath resources_path(kDumpRenderTreeDir);
102 resources_path = resources_path.Append("DumpRenderTree_resources"); 102 resources_path = resources_path.Append("DumpRenderTree_resources");
103 switch (resource_id) { 103 switch (resource_id) {
104 case IDR_BROKENIMAGE: { 104 case IDR_BROKENIMAGE: {
(...skipping 14 matching lines...) Expand all
119 if (!success) 119 if (!success)
120 LOG(FATAL) << "Failed reading: " << path.value(); 120 LOG(FATAL) << "Failed reading: " << path.value();
121 } 121 }
122 return resize_corner_data; 122 return resize_corner_data;
123 } 123 }
124 } 124 }
125 125
126 return ResourceBundle::GetSharedInstance().GetRawDataResourceForScale( 126 return ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(
127 resource_id, scale_factor); 127 resource_id, scale_factor);
128 } 128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698