OLD | NEW |
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 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
8 #include <AvailabilityMacros.h> | 8 #include <AvailabilityMacros.h> |
9 #import <Foundation/Foundation.h> | 9 #import <Foundation/Foundation.h> |
10 #import <objc/objc-runtime.h> | 10 #import <objc/objc-runtime.h> |
11 | 11 |
12 #include "base/base_paths.h" | 12 #include "base/base_paths.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/mac/bundle_locations.h" | 15 #include "base/mac/bundle_locations.h" |
16 #include "base/mac/mac_util.h" | 16 #include "base/mac/mac_util.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 #include "grit/webkit_resources.h" | 20 #include "grit/webkit_resources.h" |
21 #include "ui/base/resource/data_pack.h" | 21 #include "ui/base/resource/data_pack.h" |
22 #include "webkit/plugins/npapi/plugin_list.h" | |
23 #import "webkit/support/drt_application_mac.h" | 22 #import "webkit/support/drt_application_mac.h" |
24 #import "webkit/support/mac/DumpRenderTreePasteboard.h" | 23 #import "webkit/support/mac/DumpRenderTreePasteboard.h" |
25 #include "webkit/support/test_webkit_platform_support.h" | 24 #include "webkit/support/test_webkit_platform_support.h" |
26 | 25 |
27 static ui::DataPack* g_resource_data_pack = NULL; | 26 static ui::DataPack* g_resource_data_pack = NULL; |
28 | 27 |
29 namespace webkit_support { | 28 namespace webkit_support { |
30 | 29 |
31 static NSAutoreleasePool* autorelease_pool; | 30 static NSAutoreleasePool* autorelease_pool; |
32 | 31 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } | 197 } |
199 } | 198 } |
200 return resize_corner_data; | 199 return resize_corner_data; |
201 } | 200 } |
202 } | 201 } |
203 base::StringPiece res; | 202 base::StringPiece res; |
204 if (g_resource_data_pack) | 203 if (g_resource_data_pack) |
205 g_resource_data_pack->GetStringPiece(resource_id, &res); | 204 g_resource_data_pack->GetStringPiece(resource_id, &res); |
206 return res; | 205 return res; |
207 } | 206 } |
OLD | NEW |