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

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

Issue 9623009: Add one-arg implementations of WebViewClient::createGraphicsContext3D() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND 346 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
347 return SimpleDomStorageSystem::instance().CreateSessionStorageNamespace(); 347 return SimpleDomStorageSystem::instance().CreateSessionStorageNamespace();
348 #else 348 #else
349 // Enforce quota, ignoring the parameter from WebCore as in Chrome. 349 // Enforce quota, ignoring the parameter from WebCore as in Chrome.
350 return WebKit::WebStorageNamespace::createSessionStorageNamespace( 350 return WebKit::WebStorageNamespace::createSessionStorageNamespace(
351 WebStorageNamespace::m_sessionStorageQuota); 351 WebStorageNamespace::m_sessionStorageQuota);
352 #endif 352 #endif
353 } 353 }
354 354
355 WebGraphicsContext3D* TestWebViewDelegate::createGraphicsContext3D( 355 WebGraphicsContext3D* TestWebViewDelegate::createGraphicsContext3D(
356 const WebGraphicsContext3D::Attributes& attributes) {
357 return createGraphicsContext3D(attributes, true);
358 }
359 WebGraphicsContext3D* TestWebViewDelegate::createGraphicsContext3D(
356 const WebGraphicsContext3D::Attributes& attributes, 360 const WebGraphicsContext3D::Attributes& attributes,
357 bool direct) { 361 bool direct) {
358 return webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView( 362 return webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView(
359 attributes, direct); 363 attributes, direct);
360 } 364 }
361 365
362 void TestWebViewDelegate::didAddMessageToConsole( 366 void TestWebViewDelegate::didAddMessageToConsole(
363 const WebConsoleMessage& message, const WebString& source_name, 367 const WebConsoleMessage& message, const WebString& source_name,
364 unsigned source_line) { 368 unsigned source_line) {
365 logging::LogMessage("CONSOLE", 0).stream() << "\"" 369 logging::LogMessage("CONSOLE", 0).stream() << "\""
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 } 1163 }
1160 1164
1161 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1165 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1162 fake_rect_ = rect; 1166 fake_rect_ = rect;
1163 using_fake_rect_ = true; 1167 using_fake_rect_ = true;
1164 } 1168 }
1165 1169
1166 WebRect TestWebViewDelegate::fake_window_rect() { 1170 WebRect TestWebViewDelegate::fake_window_rect() {
1167 return fake_rect_; 1171 return fake_rect_;
1168 } 1172 }
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