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

Side by Side Diff: webkit/support/test_webkit_client.cc

Issue 6090002: Expose Mac WebThemeEngine hooks added by r70278 (and r74581 on the WebKit sid... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « webkit/support/test_webkit_client.h ('k') | webkit/support/webkit_support.h » ('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) 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/test_webkit_client.h" 5 #include "webkit/support/test_webkit_client.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/scoped_temp_dir.h" 9 #include "base/scoped_temp_dir.h"
10 #include "base/metrics/stats_counters.h" 10 #include "base/metrics/stats_counters.h"
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 const WebKit::WebString& keyPath, 324 const WebKit::WebString& keyPath,
325 WebKit::WebVector<WebKit::WebIDBKey>& keys_out) { 325 WebKit::WebVector<WebKit::WebIDBKey>& keys_out) {
326 WebKit::WebVector<WebKit::WebIDBKey> keys(values.size()); 326 WebKit::WebVector<WebKit::WebIDBKey> keys(values.size());
327 for (size_t i = 0; i < values.size(); ++i) { 327 for (size_t i = 0; i < values.size(); ++i) {
328 keys[i] = WebKit::WebIDBKey::createFromValueAndKeyPath( 328 keys[i] = WebKit::WebIDBKey::createFromValueAndKeyPath(
329 values[i], WebKit::WebIDBKeyPath::create(keyPath)); 329 values[i], WebKit::WebIDBKeyPath::create(keyPath));
330 } 330 }
331 keys_out.swap(keys); 331 keys_out.swap(keys);
332 } 332 }
333 333
334 #if defined(OS_WIN) 334 #if defined(OS_WIN) || defined(OS_MACOSX)
335 void TestWebKitClient::SetThemeEngine(WebKit::WebThemeEngine* engine) { 335 void TestWebKitClient::SetThemeEngine(WebKit::WebThemeEngine* engine) {
336 active_theme_engine_ = engine ? engine : WebKitClientImpl::themeEngine(); 336 active_theme_engine_ = engine ? engine : WebKitClientImpl::themeEngine();
337 } 337 }
338 338
339 WebKit::WebThemeEngine* TestWebKitClient::themeEngine() { 339 WebKit::WebThemeEngine* TestWebKitClient::themeEngine() {
340 return active_theme_engine_; 340 return active_theme_engine_;
341 } 341 }
342 #endif 342 #endif
343 343
344 WebKit::WebSharedWorkerRepository* TestWebKitClient::sharedWorkerRepository() { 344 WebKit::WebSharedWorkerRepository* TestWebKitClient::sharedWorkerRepository() {
345 return NULL; 345 return NULL;
346 } 346 }
347 347
348 WebKit::WebGraphicsContext3D* TestWebKitClient::createGraphicsContext3D() { 348 WebKit::WebGraphicsContext3D* TestWebKitClient::createGraphicsContext3D() {
349 return WebKit::WebGraphicsContext3D::createDefault(); 349 return WebKit::WebGraphicsContext3D::createDefault();
350 } 350 }
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_client.h ('k') | webkit/support/webkit_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698