| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 } | 437 } |
| 438 | 438 |
| 439 void RenderViewHost::Zoom(PageZoom::Function function) { | 439 void RenderViewHost::Zoom(PageZoom::Function function) { |
| 440 Send(new ViewMsg_Zoom(routing_id(), function)); | 440 Send(new ViewMsg_Zoom(routing_id(), function)); |
| 441 } | 441 } |
| 442 | 442 |
| 443 void RenderViewHost::SetPageEncoding(const std::string& encoding_name) { | 443 void RenderViewHost::SetPageEncoding(const std::string& encoding_name) { |
| 444 Send(new ViewMsg_SetPageEncoding(routing_id(), encoding_name)); | 444 Send(new ViewMsg_SetPageEncoding(routing_id(), encoding_name)); |
| 445 } | 445 } |
| 446 | 446 |
| 447 void RenderViewHost::ResetPageEncodingToDefault() { |
| 448 Send(new ViewMsg_ResetPageEncodingToDefault(routing_id())); |
| 449 } |
| 450 |
| 447 void RenderViewHost::SetAlternateErrorPageURL(const GURL& url) { | 451 void RenderViewHost::SetAlternateErrorPageURL(const GURL& url) { |
| 448 Send(new ViewMsg_SetAltErrorPageURL(routing_id(), url)); | 452 Send(new ViewMsg_SetAltErrorPageURL(routing_id(), url)); |
| 449 } | 453 } |
| 450 | 454 |
| 451 void RenderViewHost::FillForm(const FormData& form_data) { | 455 void RenderViewHost::FillForm(const FormData& form_data) { |
| 452 Send(new ViewMsg_FormFill(routing_id(), form_data)); | 456 Send(new ViewMsg_FormFill(routing_id(), form_data)); |
| 453 } | 457 } |
| 454 | 458 |
| 455 void RenderViewHost::FillPasswordForm( | 459 void RenderViewHost::FillPasswordForm( |
| 456 const PasswordFormDomManager::FillData& form_data) { | 460 const PasswordFormDomManager::FillData& form_data) { |
| (...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1657 } | 1661 } |
| 1658 | 1662 |
| 1659 void RenderViewHost::ResetModalDialogEvent() { | 1663 void RenderViewHost::ResetModalDialogEvent() { |
| 1660 if (--modal_dialog_count_ == 0) | 1664 if (--modal_dialog_count_ == 0) |
| 1661 modal_dialog_event_->Reset(); | 1665 modal_dialog_event_->Reset(); |
| 1662 } | 1666 } |
| 1663 | 1667 |
| 1664 void RenderViewHost::UpdateBrowserWindowId(int window_id) { | 1668 void RenderViewHost::UpdateBrowserWindowId(int window_id) { |
| 1665 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); | 1669 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); |
| 1666 } | 1670 } |
| OLD | NEW |