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

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

Issue 8477042: Move Sad Tab implementation out of the TabContentsViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes for jochen and jam Created 9 years, 1 month 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
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_VIEW_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // content::NotificationObserver implementation. 74 // content::NotificationObserver implementation.
75 virtual void Observe(int type, 75 virtual void Observe(int type,
76 const content::NotificationSource& source, 76 const content::NotificationSource& source,
77 const content::NotificationDetails& details) OVERRIDE; 77 const content::NotificationDetails& details) OVERRIDE;
78 78
79 // TabContentsObserver implementation. 79 // TabContentsObserver implementation.
80 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 80 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
81 81
82 // Terminates or cancels the print job if one was pending. 82 // Terminates or cancels the print job if one was pending.
83 virtual void RenderViewGone(); 83 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
84 84
85 // Cancels the print job. 85 // Cancels the print job.
86 virtual void StopNavigation(); 86 virtual void StopNavigation() OVERRIDE;
87 87
88 private: 88 private:
89 // IPC Message handlers. 89 // IPC Message handlers.
90 void OnDidGetPrintedPagesCount(int cookie, int number_pages); 90 void OnDidGetPrintedPagesCount(int cookie, int number_pages);
91 void OnDidGetDocumentCookie(int cookie); 91 void OnDidGetDocumentCookie(int cookie);
92 void OnDidShowPrintDialog(); 92 void OnDidShowPrintDialog();
93 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); 93 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params);
94 void OnPrintingFailed(int cookie); 94 void OnPrintingFailed(int cookie);
95 95
96 // Processes a NOTIFY_PRINT_JOB_EVENT notification. 96 // Processes a NOTIFY_PRINT_JOB_EVENT notification.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 // The document cookie of the current PrinterQuery. 179 // The document cookie of the current PrinterQuery.
180 int cookie_; 180 int cookie_;
181 181
182 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); 182 DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
183 }; 183 };
184 184
185 } // namespace printing 185 } // namespace printing
186 186
187 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 187 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698