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

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

Issue 6303017: Fix input-speech related failures on DRT... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « webkit/support/platform_support_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 static std::string resize_corner_data; 92 static std::string resize_corner_data;
93 if (resize_corner_data.empty()) { 93 if (resize_corner_data.empty()) {
94 FilePath path = GetResourceFilePath("textAreaResizeCorner.png"); 94 FilePath path = GetResourceFilePath("textAreaResizeCorner.png");
95 bool success = file_util::ReadFileToString(path, &resize_corner_data); 95 bool success = file_util::ReadFileToString(path, &resize_corner_data);
96 if (!success) { 96 if (!success) {
97 LOG(FATAL) << "Failed reading: " << path.value(); 97 LOG(FATAL) << "Failed reading: " << path.value();
98 } 98 }
99 } 99 }
100 return resize_corner_data; 100 return resize_corner_data;
101 } 101 }
102
103 case IDR_SEARCH_CANCEL:
104 case IDR_SEARCH_CANCEL_PRESSED:
105 case IDR_SEARCH_MAGNIFIER:
106 case IDR_SEARCH_MAGNIFIER_RESULTS:
107 case IDR_MEDIA_PAUSE_BUTTON:
108 case IDR_MEDIA_PLAY_BUTTON:
109 case IDR_MEDIA_PLAY_BUTTON_DISABLED:
110 case IDR_MEDIA_SOUND_FULL_BUTTON:
111 case IDR_MEDIA_SOUND_NONE_BUTTON:
112 case IDR_MEDIA_SOUND_DISABLED:
113 case IDR_MEDIA_SLIDER_THUMB:
114 case IDR_MEDIA_VOLUME_SLIDER_THUMB:
115 case IDR_DEVTOOLS_DEBUGGER_SCRIPT_JS:
116 return NetResourceProvider(resource_id);
117
118 default:
119 break;
120 } 102 }
121 103
122 return base::StringPiece(); 104 return NetResourceProvider(resource_id);
tony 2011/01/25 17:24:44 Nit: Can we rename this function to ResourceProvid
tkent 2011/01/26 01:11:53 Done.
123 } 105 }
124 106
125 } // namespace webkit_glue 107 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/support/platform_support_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698