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

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 9297046: Add WebKitPlatformSupport::createOffscreenGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: churn Created 8 years, 10 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_webview_delegate.h ('k') | no next file » | 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 // This file contains the implementation of TestWebViewDelegate, which serves 5 // This file contains the implementation of TestWebViewDelegate, which serves
6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to 6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to
7 // have initialized a MessageLoop before these methods are called. 7 // have initialized a MessageLoop before these methods are called.
8 8
9 #include "webkit/tools/test_shell/test_webview_delegate.h" 9 #include "webkit/tools/test_shell/test_webview_delegate.h"
10 10
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 332 }
333 333
334 WebStorageNamespace* TestWebViewDelegate::createSessionStorageNamespace( 334 WebStorageNamespace* TestWebViewDelegate::createSessionStorageNamespace(
335 unsigned quota) { 335 unsigned quota) {
336 // Enforce quota, ignoring the parameter from WebCore as in Chrome. 336 // Enforce quota, ignoring the parameter from WebCore as in Chrome.
337 return WebKit::WebStorageNamespace::createSessionStorageNamespace( 337 return WebKit::WebStorageNamespace::createSessionStorageNamespace(
338 WebStorageNamespace::m_sessionStorageQuota); 338 WebStorageNamespace::m_sessionStorageQuota);
339 } 339 }
340 340
341 WebGraphicsContext3D* TestWebViewDelegate::createGraphicsContext3D( 341 WebGraphicsContext3D* TestWebViewDelegate::createGraphicsContext3D(
342 WebGraphicsContext3D::Attributes attributes, 342 const WebGraphicsContext3D::Attributes& attributes,
343 bool direct) { 343 bool direct) {
344 if (!shell_->webView()) 344 if (!shell_->webView())
345 return NULL; 345 return NULL;
346 scoped_ptr<WebGraphicsContext3D> context( 346 scoped_ptr<WebGraphicsContext3D> context(
347 new webkit::gpu::WebGraphicsContext3DInProcessImpl( 347 new webkit::gpu::WebGraphicsContext3DInProcessImpl(
348 gfx::kNullPluginWindow, NULL)); 348 gfx::kNullPluginWindow, NULL));
349 if (!context->initialize(attributes, shell_->webView(), direct)) 349 if (!context->initialize(attributes, shell_->webView(), direct))
350 return NULL; 350 return NULL;
351 return context.release(); 351 return context.release();
352 } 352 }
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 } 1166 }
1167 1167
1168 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1168 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1169 fake_rect_ = rect; 1169 fake_rect_ = rect;
1170 using_fake_rect_ = true; 1170 using_fake_rect_ = true;
1171 } 1171 }
1172 1172
1173 WebRect TestWebViewDelegate::fake_window_rect() { 1173 WebRect TestWebViewDelegate::fake_window_rect() {
1174 return fake_rect_; 1174 return fake_rect_;
1175 } 1175 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698