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

Side by Side Diff: webkit/tools/test_shell/test_shell_webkit_init.h

Issue 10383006: Add scale factor and 2x resources from webkit and plumb through to ContentClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more test class GetImageResource methods. Created 8 years, 7 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/tools/test_shell/test_shell_mac.mm ('k') | webkit/tools/test_shell/test_shell_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) 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 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return active_theme_engine_; 99 return active_theme_engine_;
100 } 100 }
101 #endif 101 #endif
102 102
103 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() OVERRIDE; 103 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() OVERRIDE;
104 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 104 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
105 const WebKit::WebGraphicsContext3D::Attributes& attributes); 105 const WebKit::WebGraphicsContext3D::Attributes& attributes);
106 106
107 virtual string16 GetLocalizedString(int message_id) OVERRIDE; 107 virtual string16 GetLocalizedString(int message_id) OVERRIDE;
108 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE; 108 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE;
109 virtual base::StringPiece GetImageResource(int resource_id,
110 float scale_factor) OVERRIDE;
109 virtual void GetPlugins(bool refresh, 111 virtual void GetPlugins(bool refresh,
110 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; 112 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
111 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( 113 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
112 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) 114 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
113 OVERRIDE; 115 OVERRIDE;
114 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( 116 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge(
115 WebKit::WebSocketStreamHandle* handle, 117 WebKit::WebSocketStreamHandle* handle,
116 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; 118 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE;
117 119
118 private: 120 private:
119 scoped_ptr<webkit_glue::SimpleWebMimeRegistryImpl> mime_registry_; 121 scoped_ptr<webkit_glue::SimpleWebMimeRegistryImpl> mime_registry_;
120 MockWebClipboardImpl mock_clipboard_; 122 MockWebClipboardImpl mock_clipboard_;
121 SimpleClipboardClient clipboard_client_; 123 SimpleClipboardClient clipboard_client_;
122 webkit_glue::WebClipboardImpl real_clipboard_; 124 webkit_glue::WebClipboardImpl real_clipboard_;
123 webkit_glue::WebFileUtilitiesImpl file_utilities_; 125 webkit_glue::WebFileUtilitiesImpl file_utilities_;
124 ScopedTempDir appcache_dir_; 126 ScopedTempDir appcache_dir_;
125 SimpleAppCacheSystem appcache_system_; 127 SimpleAppCacheSystem appcache_system_;
126 SimpleDatabaseSystem database_system_; 128 SimpleDatabaseSystem database_system_;
127 SimpleDomStorageSystem dom_storage_system_; 129 SimpleDomStorageSystem dom_storage_system_;
128 SimpleWebCookieJarImpl cookie_jar_; 130 SimpleWebCookieJarImpl cookie_jar_;
129 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; 131 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_;
130 SimpleFileSystem file_system_; 132 SimpleFileSystem file_system_;
131 133
132 #if defined(OS_WIN) 134 #if defined(OS_WIN)
133 WebKit::WebThemeEngine* active_theme_engine_; 135 WebKit::WebThemeEngine* active_theme_engine_;
134 #endif 136 #endif
135 }; 137 };
136 138
137 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ 139 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_mac.mm ('k') | webkit/tools/test_shell/test_shell_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698