OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |