| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |