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

Side by Side Diff: printing/printing_context_cairo.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | « net/url_request/url_request_simple_job.h ('k') | printing/printing_context_mac.h » ('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 PRINTING_PRINTING_CONTEXT_CAIRO_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_CAIRO_H_
6 #define PRINTING_PRINTING_CONTEXT_CAIRO_H_ 6 #define PRINTING_PRINTING_CONTEXT_CAIRO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "printing/printing_context.h" 10 #include "printing/printing_context.h"
11 11
12 namespace printing { 12 namespace printing {
13 13
14 class Metafile; 14 class Metafile;
15 class PrintDialogGtkInterface; 15 class PrintDialogGtkInterface;
16 16
17 class PrintingContextCairo : public PrintingContext { 17 class PrintingContextCairo : public PrintingContext {
18 public: 18 public:
19 explicit PrintingContextCairo(const std::string& app_locale); 19 explicit PrintingContextCairo(const std::string& app_locale);
20 ~PrintingContextCairo(); 20 virtual ~PrintingContextCairo();
21 21
22 #if !defined(OS_CHROMEOS) 22 #if !defined(OS_CHROMEOS)
23 // Sets the function that creates the print dialog. 23 // Sets the function that creates the print dialog.
24 static void SetCreatePrintDialogFunction( 24 static void SetCreatePrintDialogFunction(
25 PrintDialogGtkInterface* (*create_dialog_func)( 25 PrintDialogGtkInterface* (*create_dialog_func)(
26 PrintingContextCairo* context)); 26 PrintingContextCairo* context));
27 27
28 // Prints the document contained in |metafile|. 28 // Prints the document contained in |metafile|.
29 void PrintDocument(const Metafile* metafile); 29 void PrintDocument(const Metafile* metafile);
30 #endif 30 #endif
(...skipping 20 matching lines...) Expand all
51 string16 document_name_; 51 string16 document_name_;
52 PrintDialogGtkInterface* print_dialog_; 52 PrintDialogGtkInterface* print_dialog_;
53 #endif 53 #endif
54 54
55 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo); 55 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo);
56 }; 56 };
57 57
58 } // namespace printing 58 } // namespace printing
59 59
60 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_ 60 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_simple_job.h ('k') | printing/printing_context_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698