| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/render_view_host.h" | 5 #include "chrome/browser/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 Send(new ViewMsg_Find(routing_id_, request)); | 319 Send(new ViewMsg_Find(routing_id_, request)); |
| 320 | 320 |
| 321 // This call is asynchronous and returns immediately. | 321 // This call is asynchronous and returns immediately. |
| 322 // The result of the search is sent as a notification message by the renderer. | 322 // The result of the search is sent as a notification message by the renderer. |
| 323 } | 323 } |
| 324 | 324 |
| 325 void RenderViewHost::StopFinding(bool clear_selection) { | 325 void RenderViewHost::StopFinding(bool clear_selection) { |
| 326 Send(new ViewMsg_StopFinding(routing_id_, clear_selection)); | 326 Send(new ViewMsg_StopFinding(routing_id_, clear_selection)); |
| 327 } | 327 } |
| 328 | 328 |
| 329 void RenderViewHost::AlterTextSize(text_zoom::TextSize size) { | 329 void RenderViewHost::Zoom(PageZoom::Function function) { |
| 330 Send(new ViewMsg_AlterTextSize(routing_id_, size)); | 330 Send(new ViewMsg_Zoom(routing_id_, function)); |
| 331 } | 331 } |
| 332 | 332 |
| 333 void RenderViewHost::SetPageEncoding(const std::wstring& encoding_name) { | 333 void RenderViewHost::SetPageEncoding(const std::wstring& encoding_name) { |
| 334 Send(new ViewMsg_SetPageEncoding(routing_id_, encoding_name)); | 334 Send(new ViewMsg_SetPageEncoding(routing_id_, encoding_name)); |
| 335 } | 335 } |
| 336 | 336 |
| 337 void RenderViewHost::SetAlternateErrorPageURL(const GURL& url) { | 337 void RenderViewHost::SetAlternateErrorPageURL(const GURL& url) { |
| 338 Send(new ViewMsg_SetAltErrorPageURL(routing_id_, url)); | 338 Send(new ViewMsg_SetAltErrorPageURL(routing_id_, url)); |
| 339 } | 339 } |
| 340 | 340 |
| (...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 event_name, | 1199 event_name, |
| 1200 event_arg)); | 1200 event_arg)); |
| 1201 } | 1201 } |
| 1202 #endif | 1202 #endif |
| 1203 | 1203 |
| 1204 void RenderViewHost::ForwardMessageFromExternalHost( | 1204 void RenderViewHost::ForwardMessageFromExternalHost( |
| 1205 const std::string& target, const std::string& message) { | 1205 const std::string& target, const std::string& message) { |
| 1206 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message)); | 1206 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message)); |
| 1207 } | 1207 } |
| 1208 | 1208 |
| OLD | NEW |