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

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

Issue 2775003: Added plumbing to transport the frame name between RenderViewHost and the Webkit layer. (Closed)
Patch Set: Final version for the record Created 10 years, 6 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
« 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) 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 // 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 prefs->Apply(shell_->webView()); 309 prefs->Apply(shell_->webView());
310 } 310 }
311 311
312 void TestWebViewDelegate::SetAuthorAndUserStylesEnabled(bool is_enabled) { 312 void TestWebViewDelegate::SetAuthorAndUserStylesEnabled(bool is_enabled) {
313 WebPreferences* prefs = shell_->GetWebPreferences(); 313 WebPreferences* prefs = shell_->GetWebPreferences();
314 prefs->author_and_user_styles_enabled = is_enabled; 314 prefs->author_and_user_styles_enabled = is_enabled;
315 prefs->Apply(shell_->webView()); 315 prefs->Apply(shell_->webView());
316 } 316 }
317 317
318 // WebViewClient ------------------------------------------------------------- 318 // WebViewClient -------------------------------------------------------------
319 319 // TODO(atwilson): Remove this API when we push related changes upstream
320 WebView* TestWebViewDelegate::createView( 320 WebView* TestWebViewDelegate::createView(
321 WebFrame* creator, 321 WebFrame* creator,
322 const WebWindowFeatures& window_features) { 322 const WebWindowFeatures& window_features) {
323 return shell_->CreateWebView(); 323 return shell_->CreateWebView();
324 } 324 }
325 325
326 WebView* TestWebViewDelegate::createView(
327 WebFrame* creator,
328 const WebWindowFeatures& window_features,
329 const WebString& frame_name) {
330 return shell_->CreateWebView();
331 }
332
326 WebWidget* TestWebViewDelegate::createPopupMenu(WebPopupType popup_type) { 333 WebWidget* TestWebViewDelegate::createPopupMenu(WebPopupType popup_type) {
327 // TODO(darin): Should we take into account |popup_type| (for activation 334 // TODO(darin): Should we take into account |popup_type| (for activation
328 // purpose)? 335 // purpose)?
329 return shell_->CreatePopupWidget(); 336 return shell_->CreatePopupWidget();
330 } 337 }
331 338
332 WebStorageNamespace* TestWebViewDelegate::createSessionStorageNamespace( 339 WebStorageNamespace* TestWebViewDelegate::createSessionStorageNamespace(
333 unsigned quota) { 340 unsigned quota) {
334 // Enforce quota, ignoring the parameter from WebCore as in Chrome. 341 // Enforce quota, ignoring the parameter from WebCore as in Chrome.
335 return WebKit::WebStorageNamespace::createSessionStorageNamespace( 342 return WebKit::WebStorageNamespace::createSessionStorageNamespace(
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 } 1303 }
1297 1304
1298 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1305 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1299 fake_rect_ = rect; 1306 fake_rect_ = rect;
1300 using_fake_rect_ = true; 1307 using_fake_rect_ = true;
1301 } 1308 }
1302 1309
1303 WebRect TestWebViewDelegate::fake_window_rect() { 1310 WebRect TestWebViewDelegate::fake_window_rect() {
1304 return fake_rect_; 1311 return fake_rect_;
1305 } 1312 }
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