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

Unified Diff: chrome/browser/printing/print_preview_message_handler.h

Issue 6334010: Print Preview: Store preview data in the print preview handler.... (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/printing/print_preview_message_handler.h
===================================================================
--- chrome/browser/printing/print_preview_message_handler.h (revision 0)
+++ chrome/browser/printing/print_preview_message_handler.h (revision 0)
@@ -0,0 +1,35 @@
+// Copyright (c) 2011 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_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
+#define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
+#pragma once
+
+#include "chrome/browser/tab_contents/web_navigation_observer.h"
+
+struct ViewHostMsg_DidPreviewDocument_Params;
+
+namespace printing {
+
+class PrintPreviewMessageHandler : public WebNavigationObserver {
+ public:
+ explicit PrintPreviewMessageHandler(TabContents* owner);
+ ~PrintPreviewMessageHandler();
James Hawkins 2011/01/31 18:39:38 virtual
Lei Zhang 2011/01/31 22:15:51 Done.
+
+ void OnPagesReadyForPreview(
+ const ViewHostMsg_DidPreviewDocument_Params& params);
+ // WebNavigationObserver implementation.
James Hawkins 2011/01/31 18:39:38 Blank line above this line.
Lei Zhang 2011/01/31 22:15:51 Done.
+ virtual bool OnMessageReceived(const IPC::Message& message);
+
+ private:
+ TabContents* GetOrCreatePrintPreviewTab();
James Hawkins 2011/01/31 18:39:38 Document.
Lei Zhang 2011/01/31 22:15:51 Done.
+
+ TabContents* owner_;
James Hawkins 2011/01/31 18:39:38 Document.
Lei Zhang 2011/01/31 22:15:51 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler);
+};
+
+} // namespace printing
+
+#endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
Property changes on: chrome/browser/printing/print_preview_message_handler.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698