Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/browser/tab_contents/web_navigation_observer.h" | |
| 10 | |
| 11 struct ViewHostMsg_DidPreviewDocument_Params; | |
| 12 | |
| 13 namespace printing { | |
| 14 | |
| 15 class PrintPreviewMessageHandler : public WebNavigationObserver { | |
| 16 public: | |
| 17 explicit PrintPreviewMessageHandler(TabContents* owner); | |
| 18 ~PrintPreviewMessageHandler(); | |
|
James Hawkins
2011/01/31 18:39:38
virtual
Lei Zhang
2011/01/31 22:15:51
Done.
| |
| 19 | |
| 20 void OnPagesReadyForPreview( | |
| 21 const ViewHostMsg_DidPreviewDocument_Params& params); | |
| 22 // WebNavigationObserver implementation. | |
|
James Hawkins
2011/01/31 18:39:38
Blank line above this line.
Lei Zhang
2011/01/31 22:15:51
Done.
| |
| 23 virtual bool OnMessageReceived(const IPC::Message& message); | |
| 24 | |
| 25 private: | |
| 26 TabContents* GetOrCreatePrintPreviewTab(); | |
|
James Hawkins
2011/01/31 18:39:38
Document.
Lei Zhang
2011/01/31 22:15:51
Done.
| |
| 27 | |
| 28 TabContents* owner_; | |
|
James Hawkins
2011/01/31 18:39:38
Document.
Lei Zhang
2011/01/31 22:15:51
Done.
| |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); | |
| 31 }; | |
| 32 | |
| 33 } // namespace printing | |
| 34 | |
| 35 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ | |
| OLD | NEW |