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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.h

Issue 570048: Add zoom extension API (Closed)
Patch Set: Zoom extension API with docs and examples Created 9 years, 10 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
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 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 bool match_case, 226 bool match_case,
227 bool find_next); 227 bool find_next);
228 228
229 // Cancel a pending find operation. 229 // Cancel a pending find operation.
230 void StopFinding(FindBarController::SelectionAction selection_action); 230 void StopFinding(FindBarController::SelectionAction selection_action);
231 231
232 // Increment, decrement, or reset the zoom level of a page. 232 // Increment, decrement, or reset the zoom level of a page.
233 void Zoom(PageZoom::Function function); 233 void Zoom(PageZoom::Function function);
234 234
235 // Change the zoom level of a page to a specific value. 235 // Change the zoom level of a page to a specific value.
236 void SetZoomLevel(double zoom_level); 236 void SetZoomLevel(int request_id, double zoom_level);
237 237
238 // Change the encoding of the page. 238 // Change the encoding of the page.
239 void SetPageEncoding(const std::string& encoding); 239 void SetPageEncoding(const std::string& encoding);
240 240
241 // Reset any override encoding on the page and change back to default. 241 // Reset any override encoding on the page and change back to default.
242 void ResetPageEncodingToDefault(); 242 void ResetPageEncodingToDefault();
243 243
244 // Change the alternate error page URL. An empty GURL disables the use of 244 // Change the alternate error page URL. An empty GURL disables the use of
245 // alternate error pages. 245 // alternate error pages.
246 void SetAlternateErrorPageURL(const GURL& url); 246 void SetAlternateErrorPageURL(const GURL& url);
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 // The termination status of the last render view that terminated. 730 // The termination status of the last render view that terminated.
731 base::TerminationStatus render_view_termination_status_; 731 base::TerminationStatus render_view_termination_status_;
732 732
733 // The enabled/disabled states of various commands. 733 // The enabled/disabled states of various commands.
734 std::map<RenderViewCommand, CommandState> command_states_; 734 std::map<RenderViewCommand, CommandState> command_states_;
735 735
736 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 736 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
737 }; 737 };
738 738
739 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 739 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_message_filter.cc ('k') | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698