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

Side by Side Diff: chrome/browser/render_view_host.cc

Issue 7320: Rename various text zoom related stuff to be more generic, since we now can... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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 | « chrome/browser/render_view_host.h ('k') | chrome/browser/tab_contents.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) 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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/render_view_host.h ('k') | chrome/browser/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698