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

Side by Side Diff: chrome/renderer/render_view.h

Issue 6296018: Cleanup: Merge common code in RenderView::OnPrintPages and RenderView::OnPrin... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « no previous file | chrome/renderer/render_view.cc » ('j') | chrome/renderer/render_view.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 void LoadNavigationErrorPage(WebKit::WebFrame* frame, 1068 void LoadNavigationErrorPage(WebKit::WebFrame* frame,
1069 const WebKit::WebURLRequest& failed_request, 1069 const WebKit::WebURLRequest& failed_request,
1070 const WebKit::WebURLError& error, 1070 const WebKit::WebURLError& error,
1071 const std::string& html, 1071 const std::string& html,
1072 bool replace); 1072 bool replace);
1073 1073
1074 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame, 1074 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame,
1075 const WebKit::WebURLError& error, 1075 const WebKit::WebURLError& error,
1076 bool replace); 1076 bool replace);
1077 1077
1078 // Common method for OnPrintPages() and OnPrintPreview().
1079 void OnPrint(bool is_preview);
1080
1078 // Prints |frame|. 1081 // Prints |frame|.
1079 void Print(WebKit::WebFrame* frame, bool script_initiated, bool is_preview); 1082 void Print(WebKit::WebFrame* frame, bool script_initiated, bool is_preview);
1080 1083
1081 // Returns the PrintWebViewHelper for this class, creating if necessary. 1084 // Returns the PrintWebViewHelper for this class, creating if necessary.
1082 PrintWebViewHelper* GetPrintWebViewHelper(); 1085 PrintWebViewHelper* GetPrintWebViewHelper();
1083 1086
1084 // Returns whether the page associated with |document| is a candidate for 1087 // Returns whether the page associated with |document| is a candidate for
1085 // translation. Some pages can explictly specify (via a meta-tag) that they 1088 // translation. Some pages can explictly specify (via a meta-tag) that they
1086 // should not be translated. 1089 // should not be translated.
1087 bool IsPageTranslatable(WebKit::WebDocument* document); 1090 bool IsPageTranslatable(WebKit::WebDocument* document);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 // bunch of stuff, you should probably create a helper class and put your 1467 // bunch of stuff, you should probably create a helper class and put your
1465 // data and methods on that to avoid bloating RenderView more. You can use 1468 // data and methods on that to avoid bloating RenderView more. You can use
1466 // the Observer interface to filter IPC messages and receive frame change 1469 // the Observer interface to filter IPC messages and receive frame change
1467 // notifications. 1470 // notifications.
1468 // --------------------------------------------------------------------------- 1471 // ---------------------------------------------------------------------------
1469 1472
1470 DISALLOW_COPY_AND_ASSIGN(RenderView); 1473 DISALLOW_COPY_AND_ASSIGN(RenderView);
1471 }; 1474 };
1472 1475
1473 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1476 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/render_view.cc » ('j') | chrome/renderer/render_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698