OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/printing/print_view_manager_basic.h" | 5 #include "chrome/browser/printing/print_view_manager_basic.h" |
6 | 6 |
7 #if defined(OS_ANDROID) | 7 #if defined(OS_ANDROID) |
8 #include "base/file_descriptor_posix.h" | 8 #include "base/file_descriptor_posix.h" |
9 #include "chrome/common/print_messages.h" | 9 #include "components/printing/common/print_messages.h" |
10 #include "printing/printing_context_android.h" | 10 #include "printing/printing_context_android.h" |
11 #endif | 11 #endif |
12 | 12 |
13 DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintViewManagerBasic); | 13 DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintViewManagerBasic); |
14 | 14 |
15 namespace printing { | 15 namespace printing { |
16 | 16 |
17 PrintViewManagerBasic::PrintViewManagerBasic(content::WebContents* web_contents) | 17 PrintViewManagerBasic::PrintViewManagerBasic(content::WebContents* web_contents) |
18 : PrintViewManagerBase(web_contents) { | 18 : PrintViewManagerBase(web_contents) { |
19 } | 19 } |
(...skipping 19 matching lines...) Expand all Loading... |
39 IPC_BEGIN_MESSAGE_MAP(PrintViewManagerBasic, message) | 39 IPC_BEGIN_MESSAGE_MAP(PrintViewManagerBasic, message) |
40 IPC_MESSAGE_HANDLER(PrintHostMsg_PrintingFailed, OnPrintingFailed) | 40 IPC_MESSAGE_HANDLER(PrintHostMsg_PrintingFailed, OnPrintingFailed) |
41 IPC_MESSAGE_UNHANDLED(handled = false) | 41 IPC_MESSAGE_UNHANDLED(handled = false) |
42 IPC_END_MESSAGE_MAP() | 42 IPC_END_MESSAGE_MAP() |
43 | 43 |
44 return handled ? true : PrintViewManagerBase::OnMessageReceived(message); | 44 return handled ? true : PrintViewManagerBase::OnMessageReceived(message); |
45 } | 45 } |
46 #endif | 46 #endif |
47 | 47 |
48 } // namespace printing | 48 } // namespace printing |
OLD | NEW |