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

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

Issue 6883051: Update Chrome to accept WebKit API for RTL titles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comma Created 9 years, 8 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) 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 void TestWebViewDelegate::didCommitProvisionalLoad( 789 void TestWebViewDelegate::didCommitProvisionalLoad(
790 WebFrame* frame, bool is_new_navigation) { 790 WebFrame* frame, bool is_new_navigation) {
791 UpdateForCommittedLoad(frame, is_new_navigation); 791 UpdateForCommittedLoad(frame, is_new_navigation);
792 } 792 }
793 793
794 void TestWebViewDelegate::didClearWindowObject(WebFrame* frame) { 794 void TestWebViewDelegate::didClearWindowObject(WebFrame* frame) {
795 shell_->BindJSObjectsToWindow(frame); 795 shell_->BindJSObjectsToWindow(frame);
796 } 796 }
797 797
798 void TestWebViewDelegate::didReceiveTitle( 798 void TestWebViewDelegate::didReceiveTitle(
799 WebFrame* frame, const WebString& title) { 799 WebFrame* frame, const WebString& title, WebTextDirection direction) {
800 std::wstring wtitle = UTF16ToWideHack(title); 800 std::wstring wtitle = UTF16ToWideHack(title);
801 801
802 SetPageTitle(wtitle); 802 SetPageTitle(wtitle);
803 } 803 }
804 804
805 void TestWebViewDelegate::didFinishDocumentLoad(WebFrame* frame) { 805 void TestWebViewDelegate::didFinishDocumentLoad(WebFrame* frame) {
806 unsigned pending_unload_events = frame->unloadListenerCount(); 806 unsigned pending_unload_events = frame->unloadListenerCount();
807 if (pending_unload_events) { 807 if (pending_unload_events) {
808 printf("%S - has %u onunload handler(s)\n", 808 printf("%S - has %u onunload handler(s)\n",
809 GetFrameDescription(frame).c_str(), pending_unload_events); 809 GetFrameDescription(frame).c_str(), pending_unload_events);
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 } 1120 }
1121 1121
1122 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1122 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1123 fake_rect_ = rect; 1123 fake_rect_ = rect;
1124 using_fake_rect_ = true; 1124 using_fake_rect_ = true;
1125 } 1125 }
1126 1126
1127 WebRect TestWebViewDelegate::fake_window_rect() { 1127 WebRect TestWebViewDelegate::fake_window_rect() {
1128 return fake_rect_; 1128 return fake_rect_;
1129 } 1129 }
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