summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/print_web_view_helper.h
diff options
context:
space:
mode:
authorsverrir@google.com <sverrir@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 19:46:44 +0000
committersverrir@google.com <sverrir@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 19:46:44 +0000
commitf8488ed876cb8ace3e10a7d5e63a1a881a55b604 (patch)
treeb023cf3987671e1bec092bfec466855bf6a84248 /chrome/renderer/print_web_view_helper.h
parent9041a30d239002fc6eaac190d9ea34780804b768 (diff)
downloadchromium_src-f8488ed876cb8ace3e10a7d5e63a1a881a55b604.zip
chromium_src-f8488ed876cb8ace3e10a7d5e63a1a881a55b604.tar.gz
chromium_src-f8488ed876cb8ace3e10a7d5e63a1a881a55b604.tar.bz2
Change from CRLF to LF - a later patch does not work on the try bots because of this.
BUG=none TEST=none Review URL: http://codereview.chromium.org/118249 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper.h')
-rw-r--r--chrome/renderer/print_web_view_helper.h186
1 files changed, 93 insertions, 93 deletions
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
index f9e3fa9..1a56bd9 100644
--- a/chrome/renderer/print_web_view_helper.h
+++ b/chrome/renderer/print_web_view_helper.h
@@ -1,93 +1,93 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_
-#define CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_
-
-#include <vector>
-
-#include "base/scoped_ptr.h"
-#include "webkit/glue/webview_delegate.h"
-
-namespace gfx {
-class Size;
-}
-
-namespace IPC {
-class Message;
-}
-
-class RenderView;
-class WebView;
-struct ViewMsg_PrintPage_Params;
-struct ViewMsg_PrintPages_Params;
-
-
-// PrintWebViewHelper handles most of the printing grunt work for RenderView.
-// We plan on making print asynchronous and that will require copying the DOM
-// of the document and creating a new WebView with the contents.
-class PrintWebViewHelper : public WebViewDelegate {
- public:
- explicit PrintWebViewHelper(RenderView * render_view)
- : render_view_(render_view) {}
-
- virtual ~PrintWebViewHelper() {}
-
- void SyncPrint(WebFrame* frame);
-
- protected:
-
- // Prints the page listed in |params|.
- void PrintPage(const ViewMsg_PrintPage_Params& params,
- const gfx::Size& canvas_size,
- WebFrame* frame);
-
- // Prints all the pages listed in |params|.
- void PrintPages(const ViewMsg_PrintPages_Params& params, WebFrame* frame);
-
- // IPC::Message::Sender
- bool Send(IPC::Message* msg);
-
- int32 routing_id();
-
- // WebViewDeletegate
- virtual void DidStartLoading(WebView* webview) {}
- virtual void DidStopLoading(WebView* webview);
- virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget);
- virtual void DidInvalidateRect(WebWidget* webwidget,
- const WebKit::WebRect& rect) {}
- virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy,
- const WebKit::WebRect& clip_rect) {}
- virtual void Show(WebWidget* webwidget, WindowOpenDisposition disposition) {}
- virtual void ShowAsPopupWithItems(WebWidget* webwidget,
- const WebKit::WebRect& bounds,
- int item_height,
- int selected_index,
- const std::vector<WebMenuItem>& items) {}
- virtual void CloseWidgetSoon(WebWidget* webwidget) {}
- virtual void Focus(WebWidget* webwidget) {}
- virtual void Blur(WebWidget* webwidget) {}
- virtual void SetCursor(WebWidget* webwidget, const WebCursor& cursor) {}
- virtual void GetWindowRect(WebWidget* webwidget, WebKit::WebRect* rect);
- virtual void SetWindowRect(WebWidget* webwidget,
- const WebKit::WebRect& rect) {}
- virtual void GetRootWindowRect(WebWidget* webwidget, WebKit::WebRect* rect) {}
- virtual void GetRootWindowResizerRect(WebWidget* webwidget,
- WebKit::WebRect* rect) {}
- virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move) {}
- virtual void RunModal(WebWidget* webwidget) {}
- virtual void AddRef() {}
- virtual void Release() {}
- virtual bool IsHidden(WebWidget* webwidget);
- virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget);
-
- private:
- RenderView* render_view_;
- scoped_ptr<WebView> print_web_view_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
-};
-
-#endif // CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_
+#define CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_
+
+#include <vector>
+
+#include "base/scoped_ptr.h"
+#include "webkit/glue/webview_delegate.h"
+
+namespace gfx {
+class Size;
+}
+
+namespace IPC {
+class Message;
+}
+
+class RenderView;
+class WebView;
+struct ViewMsg_PrintPage_Params;
+struct ViewMsg_PrintPages_Params;
+
+
+// PrintWebViewHelper handles most of the printing grunt work for RenderView.
+// We plan on making print asynchronous and that will require copying the DOM
+// of the document and creating a new WebView with the contents.
+class PrintWebViewHelper : public WebViewDelegate {
+ public:
+ explicit PrintWebViewHelper(RenderView * render_view)
+ : render_view_(render_view) {}
+
+ virtual ~PrintWebViewHelper() {}
+
+ void SyncPrint(WebFrame* frame);
+
+ protected:
+
+ // Prints the page listed in |params|.
+ void PrintPage(const ViewMsg_PrintPage_Params& params,
+ const gfx::Size& canvas_size,
+ WebFrame* frame);
+
+ // Prints all the pages listed in |params|.
+ void PrintPages(const ViewMsg_PrintPages_Params& params, WebFrame* frame);
+
+ // IPC::Message::Sender
+ bool Send(IPC::Message* msg);
+
+ int32 routing_id();
+
+ // WebViewDeletegate
+ virtual void DidStartLoading(WebView* webview) {}
+ virtual void DidStopLoading(WebView* webview);
+ virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget);
+ virtual void DidInvalidateRect(WebWidget* webwidget,
+ const WebKit::WebRect& rect) {}
+ virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy,
+ const WebKit::WebRect& clip_rect) {}
+ virtual void Show(WebWidget* webwidget, WindowOpenDisposition disposition) {}
+ virtual void ShowAsPopupWithItems(WebWidget* webwidget,
+ const WebKit::WebRect& bounds,
+ int item_height,
+ int selected_index,
+ const std::vector<WebMenuItem>& items) {}
+ virtual void CloseWidgetSoon(WebWidget* webwidget) {}
+ virtual void Focus(WebWidget* webwidget) {}
+ virtual void Blur(WebWidget* webwidget) {}
+ virtual void SetCursor(WebWidget* webwidget, const WebCursor& cursor) {}
+ virtual void GetWindowRect(WebWidget* webwidget, WebKit::WebRect* rect);
+ virtual void SetWindowRect(WebWidget* webwidget,
+ const WebKit::WebRect& rect) {}
+ virtual void GetRootWindowRect(WebWidget* webwidget, WebKit::WebRect* rect) {}
+ virtual void GetRootWindowResizerRect(WebWidget* webwidget,
+ WebKit::WebRect* rect) {}
+ virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move) {}
+ virtual void RunModal(WebWidget* webwidget) {}
+ virtual void AddRef() {}
+ virtual void Release() {}
+ virtual bool IsHidden(WebWidget* webwidget);
+ virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget);
+
+ private:
+ RenderView* render_view_;
+ scoped_ptr<WebView> print_web_view_;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
+};
+
+#endif // CHROME_RENDERER_PRINT_WEB_VIEW_DELEGATE_H_