| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_dialog_cloud.h" | 5 #include "chrome/browser/printing/print_dialog_cloud.h" |
| 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" | 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" |
| 7 | 7 |
| 8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
| 14 #include "chrome/browser/browser_thread.h" | 14 #include "chrome/browser/browser_thread.h" |
| 15 #include "chrome/browser/debugger/devtools_manager.h" | 15 #include "chrome/browser/debugger/devtools_manager.h" |
| 16 #include "chrome/browser/dom_ui/dom_ui.h" | 16 #include "chrome/browser/dom_ui/dom_ui.h" |
| 17 #include "chrome/browser/dom_ui/dom_ui_util.h" | 17 #include "chrome/browser/dom_ui/dom_ui_util.h" |
| 18 #include "chrome/browser/prefs/pref_service.h" | 18 #include "chrome/browser/prefs/pref_service.h" |
| 19 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" | 19 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" |
| 20 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/browser/renderer_host/render_view_host.h" | 21 #include "chrome/browser/renderer_host/render_view_host.h" |
| 22 #include "chrome/browser/tab_contents/tab_contents.h" | 22 #include "chrome/browser/tab_contents/tab_contents.h" |
| 23 #include "chrome/browser/tab_contents/tab_contents_view.h" | 23 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 24 #include "chrome/common/notification_observer.h" | 24 #include "chrome/common/notification_observer.h" |
| 25 #include "chrome/common/notification_registrar.h" | 25 #include "chrome/common/notification_registrar.h" |
| 26 #include "chrome/common/notification_source.h" | 26 #include "chrome/common/notification_source.h" |
| 27 #include "chrome/common/notification_type.h" | 27 #include "chrome/common/notification_type.h" |
| 28 #include "chrome/common/pref_names.h" | 28 #include "chrome/common/pref_names.h" |
| 29 #include "chrome/common/render_messages_params.h" | 29 #include "chrome/common/render_messages_params.h" |
| 30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 int width = pref_service->GetInteger(prefs::kCloudPrintDialogWidth); | 527 int width = pref_service->GetInteger(prefs::kCloudPrintDialogWidth); |
| 528 int height = pref_service->GetInteger(prefs::kCloudPrintDialogHeight); | 528 int height = pref_service->GetInteger(prefs::kCloudPrintDialogHeight); |
| 529 HtmlDialogUIDelegate* dialog_delegate = | 529 HtmlDialogUIDelegate* dialog_delegate = |
| 530 new internal_cloud_print_helpers::CloudPrintHtmlDialogDelegate( | 530 new internal_cloud_print_helpers::CloudPrintHtmlDialogDelegate( |
| 531 path_to_pdf, width, height, std::string(), print_job_title); | 531 path_to_pdf, width, height, std::string(), print_job_title); |
| 532 browser_->BrowserShowHtmlDialog(dialog_delegate, NULL); | 532 browser_->BrowserShowHtmlDialog(dialog_delegate, NULL); |
| 533 } | 533 } |
| 534 | 534 |
| 535 PrintDialogCloud::~PrintDialogCloud() { | 535 PrintDialogCloud::~PrintDialogCloud() { |
| 536 } | 536 } |
| OLD | NEW |