| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |