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

Side by Side Diff: webkit/tools/test_shell/test_shell_mac.mm

Issue 18186: generate test_shell.pak and hook up loading net resources from (Closed)
Patch Set: Created 11 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
« no previous file with comments | « webkit/tools/test_shell/test_shell_gtk.cc ('k') | webkit/tools/test_shell/test_shell_main.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <ApplicationServices/ApplicationServices.h> 5 #include <ApplicationServices/ApplicationServices.h>
6 #import <Cocoa/Cocoa.h> 6 #import <Cocoa/Cocoa.h>
7 #import <objc/objc-runtime.h> 7 #import <objc/objc-runtime.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 9
10 #include "webkit/tools/test_shell/test_shell.h" 10 #include "webkit/tools/test_shell/test_shell.h"
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/debug_on_start.h" 13 #include "base/debug_on_start.h"
14 #include "base/debug_util.h" 14 #include "base/debug_util.h"
15 #include "base/file_util.h" 15 #include "base/file_util.h"
16 #include "base/gfx/size.h" 16 #include "base/gfx/size.h"
17 #include "base/icu_util.h" 17 #include "base/icu_util.h"
18 #include "base/mac_util.h" 18 #include "base/mac_util.h"
19 #include "base/memory_debug.h" 19 #include "base/memory_debug.h"
20 #include "base/message_loop.h" 20 #include "base/message_loop.h"
21 #include "base/path_service.h" 21 #include "base/path_service.h"
22 #include "base/stats_table.h" 22 #include "base/stats_table.h"
23 #include "base/string_piece.h"
23 #include "base/string_util.h" 24 #include "base/string_util.h"
24 #include "net/base/mime_util.h" 25 #include "net/base/mime_util.h"
25 #include "skia/ext/bitmap_platform_device.h" 26 #include "skia/ext/bitmap_platform_device.h"
26 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
27 #include "webkit/glue/webdatasource.h" 28 #include "webkit/glue/webdatasource.h"
28 #include "webkit/glue/webframe.h" 29 #include "webkit/glue/webframe.h"
29 #include "webkit/glue/webkit_glue.h" 30 #include "webkit/glue/webkit_glue.h"
30 #include "webkit/glue/webpreferences.h" 31 #include "webkit/glue/webpreferences.h"
31 #include "webkit/glue/weburlrequest.h" 32 #include "webkit/glue/weburlrequest.h"
32 #include "webkit/glue/webview.h" 33 #include "webkit/glue/webview.h"
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 } 853 }
853 854
854 return new_url; 855 return new_url;
855 } 856 }
856 857
857 // static 858 // static
858 void TestShell::ShowStartupDebuggingDialog() { 859 void TestShell::ShowStartupDebuggingDialog() {
859 // TODO(port): Show a modal dialog here with an attach to me message. 860 // TODO(port): Show a modal dialog here with an attach to me message.
860 } 861 }
861 862
863 StringPiece TestShell::NetResourceProvider(int key) {
864 // TODO(port): Return the requested resource.
Evan Martin 2009/01/17 00:29:20 NOTIMPLEMENTED() ?
865 return StringPiece();
866 }
867
862 //----------------------------------------------------------------------------- 868 //-----------------------------------------------------------------------------
863 869
864 namespace webkit_glue { 870 namespace webkit_glue {
865 871
866 std::wstring GetLocalizedString(int message_id) { 872 std::wstring GetLocalizedString(int message_id) {
867 NSString* idString = [NSString stringWithFormat:@"%d", message_id]; 873 NSString* idString = [NSString stringWithFormat:@"%d", message_id];
868 NSString* localString = NSLocalizedString(idString, @""); 874 NSString* localString = NSLocalizedString(idString, @"");
869 875
870 return UTF8ToWide([localString UTF8String]); 876 return UTF8ToWide([localString UTF8String]);
871 } 877 }
(...skipping 20 matching lines...) Expand all
892 return false; 898 return false;
893 } 899 }
894 900
895 void DidLoadPlugin(const std::string& filename) { 901 void DidLoadPlugin(const std::string& filename) {
896 } 902 }
897 903
898 void DidUnloadPlugin(const std::string& filename) { 904 void DidUnloadPlugin(const std::string& filename) {
899 } 905 }
900 906
901 } // namespace webkit_glue 907 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_gtk.cc ('k') | webkit/tools/test_shell/test_shell_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698