diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-30 16:55:27 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-30 16:55:27 +0000 |
commit | 26aa04898e37692f354a9f97df01ff1fc7bbb14e (patch) | |
tree | d83f599bdc5083646ea70aec4c6906707e671b71 /webkit/tools/test_shell/layout_test_controller.cc | |
parent | fbc805556ed3f7e15718313907481821ef6908b4 (diff) | |
download | chromium_src-26aa04898e37692f354a9f97df01ff1fc7bbb14e.zip chromium_src-26aa04898e37692f354a9f97df01ff1fc7bbb14e.tar.gz chromium_src-26aa04898e37692f354a9f97df01ff1fc7bbb14e.tar.bz2 |
Hook up webkit/api/public/WebView.h
This change does not completely eliminate webkit/glue/webview.h. Instead,
the old WebView extends from the new WebView temporarily as we complete
the transition.
R=dglazkov
BUG=10033
TEST=none
Review URL: http://codereview.chromium.org/257001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27620 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/layout_test_controller.cc')
-rw-r--r-- | webkit/tools/test_shell/layout_test_controller.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc index 2d0746e..bc88eb5 100644 --- a/webkit/tools/test_shell/layout_test_controller.cc +++ b/webkit/tools/test_shell/layout_test_controller.cc @@ -339,7 +339,7 @@ class WorkItemLoadingScript : public LayoutTestController::WorkItem { public: WorkItemLoadingScript(const string& script) : script_(script) {} bool Run(TestShell* shell) { - shell->webView()->GetMainFrame()->executeScript( + shell->webView()->mainFrame()->executeScript( WebScriptSource(WebString::fromUTF8(script_))); return true; // TODO(darin): Did it really start a navigation? } @@ -351,7 +351,7 @@ class WorkItemNonLoadingScript : public LayoutTestController::WorkItem { public: WorkItemNonLoadingScript(const string& script) : script_(script) {} bool Run(TestShell* shell) { - shell->webView()->GetMainFrame()->executeScript( + shell->webView()->mainFrame()->executeScript( WebScriptSource(WebString::fromUTF8(script_))); return false; } @@ -389,7 +389,7 @@ class WorkItemLoad : public LayoutTestController::WorkItem { void LayoutTestController::queueLoad( const CppArgumentList& args, CppVariant* result) { if (args.size() > 0 && args[0].isString()) { - GURL current_url = shell_->webView()->GetMainFrame()->url(); + GURL current_url = shell_->webView()->mainFrame()->url(); GURL full_url = current_url.Resolve(args[0].ToString()); string target = ""; @@ -413,7 +413,7 @@ void LayoutTestController::objCIdentityIsEqual( void LayoutTestController::Reset() { if (shell_) { - shell_->webView()->ResetZoom(); + shell_->webView()->zoomDefault(); shell_->webView()->SetTabKeyCyclesThroughElements(true); } dump_as_text_ = false; @@ -552,7 +552,7 @@ void LayoutTestController::execCommand( value = args[2].ToString(); // Note: webkit's version does not return the boolean, so neither do we. - shell_->webView()->GetFocusedFrame()->executeCommand( + shell_->webView()->focusedFrame()->executeCommand( WebString::fromUTF8(command), WebString::fromUTF8(value)); } result->SetNull(); @@ -566,7 +566,7 @@ void LayoutTestController::isCommandEnabled( } std::string command = args[0].ToString(); - bool rv = shell_->webView()->GetFocusedFrame()->isCommandEnabled( + bool rv = shell_->webView()->focusedFrame()->isCommandEnabled( WebString::fromUTF8(command)); result->Set(rv); } @@ -824,7 +824,7 @@ void LayoutTestController::evaluateScriptInIsolatedWorld( const CppArgumentList& args, CppVariant* result) { if (args.size() > 0 && args[0].isString()) { WebScriptSource source(WebString::fromUTF8(args[0].ToString())); - shell_->webView()->GetMainFrame()->executeScriptInNewWorld(&source, 1, 1); + shell_->webView()->mainFrame()->executeScriptInNewWorld(&source, 1, 1); } result->SetNull(); } |