| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "stdafx.h" | 5 #include "stdafx.h" |
| 6 #include "win8/metro_driver/print_handler.h" | 6 #include "win8/metro_driver/print_handler.h" |
| 7 | 7 |
| 8 #include <stddef.h> |
| 8 #include <windows.graphics.display.h> | 9 #include <windows.graphics.display.h> |
| 9 | 10 |
| 10 #include "base/bind.h" | 11 #include "base/bind.h" |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 #include "base/numerics/safe_conversions.h" | 13 #include "base/numerics/safe_conversions.h" |
| 13 #include "chrome/app/chrome_command_ids.h" | 14 #include "chrome/app/chrome_command_ids.h" |
| 14 #include "win8/metro_driver/chrome_app_view.h" | 15 #include "win8/metro_driver/chrome_app_view.h" |
| 15 #include "win8/metro_driver/winrt_utils.h" | 16 #include "win8/metro_driver/winrt_utils.h" |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 482 |
| 482 metro_driver::PrintHandler::AddPage(page_number, metafile_stream.Get()); | 483 metro_driver::PrintHandler::AddPage(page_number, metafile_stream.Get()); |
| 483 } else { | 484 } else { |
| 484 NOTREACHED() << "Failed to CreateStreamOnHGlobal " << std::hex << hr; | 485 NOTREACHED() << "Failed to CreateStreamOnHGlobal " << std::hex << hr; |
| 485 } | 486 } |
| 486 } | 487 } |
| 487 | 488 |
| 488 void MetroShowPrintUI() { | 489 void MetroShowPrintUI() { |
| 489 metro_driver::PrintHandler::ShowPrintUI(); | 490 metro_driver::PrintHandler::ShowPrintUI(); |
| 490 } | 491 } |
| OLD | NEW |