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

Side by Side Diff: chrome/browser/printing/print_preview_message_handler.h

Issue 7639023: Revert 96567 - Reland 96406 - Print preview page selection should not require a rerendering of dr... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/printing/print_preview_message_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/tab_contents/tab_contents_observer.h" 9 #include "content/browser/tab_contents/tab_contents_observer.h"
10 10
(...skipping 15 matching lines...) Expand all
26 virtual void DidStartLoading(); 26 virtual void DidStartLoading();
27 27
28 private: 28 private:
29 // Gets the print preview tab associated with |owner_|. 29 // Gets the print preview tab associated with |owner_|.
30 TabContents* GetPrintPreviewTab(); 30 TabContents* GetPrintPreviewTab();
31 31
32 // Message handlers. 32 // Message handlers.
33 void OnRequestPrintPreview(); 33 void OnRequestPrintPreview();
34 void OnDidGetPreviewPageCount(int document_cookie, 34 void OnDidGetPreviewPageCount(int document_cookie,
35 int page_count, 35 int page_count,
36 bool is_modifiable, 36 bool is_modifiable);
37 bool clear_preview_data);
38 // |page_number| is 0-based. 37 // |page_number| is 0-based.
39 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); 38 void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params);
40 void OnMetafileReadyForPrinting( 39 void OnPagesReadyForPreview(
41 const PrintHostMsg_DidPreviewDocument_Params& params); 40 const PrintHostMsg_DidPreviewDocument_Params& params);
42 void OnPrintPreviewFailed(int document_cookie); 41 void OnPrintPreviewFailed(int document_cookie);
43 42
44 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); 43 DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler);
45 }; 44 };
46 45
47 } // namespace printing 46 } // namespace printing
48 47
49 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_ 48 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_preview_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698