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

Side by Side Diff: webkit/support/platform_support_mac.mm

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 | « no previous file | webkit/support/platform_support_win.cc » ('j') | 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 #import <AppKit/AppKit.h> 7 #import <AppKit/AppKit.h>
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #import <objc/objc-runtime.h> 9 #import <objc/objc-runtime.h>
10 10
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 if (resize_corner_data.empty()) { 209 if (resize_corner_data.empty()) {
210 FilePath path = GetResourcesFilePath(); 210 FilePath path = GetResourcesFilePath();
211 path = path.AppendASCII("textAreaResizeCorner.png"); 211 path = path.AppendASCII("textAreaResizeCorner.png");
212 bool success = file_util::ReadFileToString(path, &resize_corner_data); 212 bool success = file_util::ReadFileToString(path, &resize_corner_data);
213 if (!success) { 213 if (!success) {
214 LOG(FATAL) << "Failed reading: " << path.value(); 214 LOG(FATAL) << "Failed reading: " << path.value();
215 } 215 }
216 } 216 }
217 return resize_corner_data; 217 return resize_corner_data;
218 } 218 }
219
220 case IDR_SEARCH_CANCEL:
221 case IDR_SEARCH_CANCEL_PRESSED:
222 case IDR_SEARCH_MAGNIFIER:
223 case IDR_SEARCH_MAGNIFIER_RESULTS:
224 case IDR_MEDIA_PAUSE_BUTTON:
225 case IDR_MEDIA_PLAY_BUTTON:
226 case IDR_MEDIA_PLAY_BUTTON_DISABLED:
227 case IDR_MEDIA_SOUND_FULL_BUTTON:
228 case IDR_MEDIA_SOUND_NONE_BUTTON:
229 case IDR_MEDIA_SOUND_DISABLED:
230 case IDR_MEDIA_SLIDER_THUMB:
231 case IDR_MEDIA_VOLUME_SLIDER_THUMB: {
232 base::StringPiece res;
233 g_resource_data_pack->GetStringPiece(resource_id, &res);
234 return res;
235 } 219 }
236 220 base::StringPiece res;
237 default: 221 g_resource_data_pack->GetStringPiece(resource_id, &res);
238 break; 222 return res;
239 }
240 return base::StringPiece();
241 } 223 }
242 224
243 } // namespace webkit_glue 225 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « no previous file | webkit/support/platform_support_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698