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

Side by Side Diff: content/renderer/render_view.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 | « content/renderer/render_view.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/renderer/render_view.h" 5 #include "content/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after
2460 GURL url = frame->url(); 2460 GURL url = frame->url();
2461 if (url.is_valid() && url.spec() != chrome::kAboutBlankURL) { 2461 if (url.is_valid() && url.spec() != chrome::kAboutBlankURL) {
2462 if (frame == webview()->mainFrame()) 2462 if (frame == webview()->mainFrame())
2463 Send(new ViewHostMsg_DocumentAvailableInMainFrame(routing_id_)); 2463 Send(new ViewHostMsg_DocumentAvailableInMainFrame(routing_id_));
2464 } 2464 }
2465 2465
2466 FOR_EACH_OBSERVER(RenderViewObserver, observers_, 2466 FOR_EACH_OBSERVER(RenderViewObserver, observers_,
2467 DidCreateDocumentElement(frame)); 2467 DidCreateDocumentElement(frame));
2468 } 2468 }
2469 2469
2470 void RenderView::didReceiveTitle(WebFrame* frame, const WebString& title) { 2470 void RenderView::didReceiveTitle(WebFrame* frame, const WebString& title,
2471 WebTextDirection direction) {
2472 // TODO: pass direction through various APIs.
2473 // http://code.google.com/p/chromium/issues/detail?id=79903
2471 UpdateTitle(frame, title); 2474 UpdateTitle(frame, title);
2472 2475
2473 // Also check whether we have new encoding name. 2476 // Also check whether we have new encoding name.
2474 UpdateEncoding(frame, frame->view()->pageEncoding().utf8()); 2477 UpdateEncoding(frame, frame->view()->pageEncoding().utf8());
2475 } 2478 }
2476 2479
2477 void RenderView::didChangeIcons(WebFrame* frame) { 2480 void RenderView::didChangeIcons(WebFrame* frame) {
2478 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidChangeIcons(frame)); 2481 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidChangeIcons(frame));
2479 } 2482 }
2480 2483
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
4245 const webkit_glue::CustomContextMenuContext& custom_context) { 4248 const webkit_glue::CustomContextMenuContext& custom_context) {
4246 if (custom_context.is_pepper_menu) 4249 if (custom_context.is_pepper_menu)
4247 pepper_delegate_.OnContextMenuClosed(custom_context); 4250 pepper_delegate_.OnContextMenuClosed(custom_context);
4248 else 4251 else
4249 context_menu_node_.reset(); 4252 context_menu_node_.reset();
4250 } 4253 }
4251 4254
4252 void RenderView::OnNetworkStateChanged(bool online) { 4255 void RenderView::OnNetworkStateChanged(bool online) {
4253 WebNetworkStateNotifier::setOnLine(online); 4256 WebNetworkStateNotifier::setOnLine(online);
4254 } 4257 }
OLDNEW
« no previous file with comments | « content/renderer/render_view.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698