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

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

Issue 10387010: Select theme resources from ResourceBundle at requested scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. 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
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"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h "
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h "
15 #include "webkit/glue/webclipboard_impl.h" 15 #include "webkit/glue/webclipboard_impl.h"
16 #include "webkit/glue/webfileutilities_impl.h" 16 #include "webkit/glue/webfileutilities_impl.h"
17 #include "webkit/glue/webkit_glue.h" 17 #include "webkit/glue/webkit_glue.h"
18 #include "webkit/glue/webkitplatformsupport_impl.h" 18 #include "webkit/glue/webkitplatformsupport_impl.h"
19 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" 19 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h"
20 #include "webkit/support/simple_database_system.h" 20 #include "webkit/support/simple_database_system.h"
21 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" 21 #include "webkit/tools/test_shell/mock_webclipboard_impl.h"
22 #include "webkit/tools/test_shell/simple_appcache_system.h" 22 #include "webkit/tools/test_shell/simple_appcache_system.h"
23 #include "webkit/tools/test_shell/simple_clipboard_impl.h" 23 #include "webkit/tools/test_shell/simple_clipboard_impl.h"
24 #include "webkit/tools/test_shell/simple_dom_storage_system.h" 24 #include "webkit/tools/test_shell/simple_dom_storage_system.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual WebKit::WebThemeEngine *themeEngine() OVERRIDE { 98 virtual WebKit::WebThemeEngine *themeEngine() OVERRIDE {
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(
109 virtual base::StringPiece GetImageResource(int resource_id, 109 int resource_id,
110 float scale_factor) OVERRIDE; 110 ui::ScaleFactor scale_factor) OVERRIDE;
111 virtual void GetPlugins(bool refresh, 111 virtual void GetPlugins(bool refresh,
112 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; 112 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
113 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( 113 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
114 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) 114 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
115 OVERRIDE; 115 OVERRIDE;
116 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( 116 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge(
117 WebKit::WebSocketStreamHandle* handle, 117 WebKit::WebSocketStreamHandle* handle,
118 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; 118 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE;
119 119
120 private: 120 private:
121 scoped_ptr<webkit_glue::SimpleWebMimeRegistryImpl> mime_registry_; 121 scoped_ptr<webkit_glue::SimpleWebMimeRegistryImpl> mime_registry_;
122 MockWebClipboardImpl mock_clipboard_; 122 MockWebClipboardImpl mock_clipboard_;
123 SimpleClipboardClient clipboard_client_; 123 SimpleClipboardClient clipboard_client_;
124 webkit_glue::WebClipboardImpl real_clipboard_; 124 webkit_glue::WebClipboardImpl real_clipboard_;
125 webkit_glue::WebFileUtilitiesImpl file_utilities_; 125 webkit_glue::WebFileUtilitiesImpl file_utilities_;
126 ScopedTempDir appcache_dir_; 126 ScopedTempDir appcache_dir_;
127 SimpleAppCacheSystem appcache_system_; 127 SimpleAppCacheSystem appcache_system_;
128 SimpleDatabaseSystem database_system_; 128 SimpleDatabaseSystem database_system_;
129 SimpleDomStorageSystem dom_storage_system_; 129 SimpleDomStorageSystem dom_storage_system_;
130 SimpleWebCookieJarImpl cookie_jar_; 130 SimpleWebCookieJarImpl cookie_jar_;
131 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; 131 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_;
132 SimpleFileSystem file_system_; 132 SimpleFileSystem file_system_;
133 133
134 #if defined(OS_WIN) 134 #if defined(OS_WIN)
135 WebKit::WebThemeEngine* active_theme_engine_; 135 WebKit::WebThemeEngine* active_theme_engine_;
136 #endif 136 #endif
137 }; 137 };
138 138
139 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ 139 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698