Chromium Code Reviews| 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 |