| OLD | NEW |
| 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 #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 "base/base64.h" | 8 #include "base/base64.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 flow_handler_->SetDialogDelegate(NULL); | 450 flow_handler_->SetDialogDelegate(NULL); |
| 451 if (owns_flow_handler_) { | 451 if (owns_flow_handler_) { |
| 452 delete flow_handler_; | 452 delete flow_handler_; |
| 453 } | 453 } |
| 454 } | 454 } |
| 455 | 455 |
| 456 bool CloudPrintHtmlDialogDelegate::IsDialogModal() const { | 456 bool CloudPrintHtmlDialogDelegate::IsDialogModal() const { |
| 457 return modal_; | 457 return modal_; |
| 458 } | 458 } |
| 459 | 459 |
| 460 std::wstring CloudPrintHtmlDialogDelegate::GetDialogTitle() const { | 460 string16 CloudPrintHtmlDialogDelegate::GetDialogTitle() const { |
| 461 return std::wstring(); | 461 return string16(); |
| 462 } | 462 } |
| 463 | 463 |
| 464 GURL CloudPrintHtmlDialogDelegate::GetDialogContentURL() const { | 464 GURL CloudPrintHtmlDialogDelegate::GetDialogContentURL() const { |
| 465 return params_.url; | 465 return params_.url; |
| 466 } | 466 } |
| 467 | 467 |
| 468 void CloudPrintHtmlDialogDelegate::GetWebUIMessageHandlers( | 468 void CloudPrintHtmlDialogDelegate::GetWebUIMessageHandlers( |
| 469 std::vector<WebUIMessageHandler*>* handlers) const { | 469 std::vector<WebUIMessageHandler*>* handlers) const { |
| 470 handlers->push_back(flow_handler_); | 470 handlers->push_back(flow_handler_); |
| 471 // We don't own flow_handler_ anymore, but it sticks around until at | 471 // We don't own flow_handler_ anymore, but it sticks around until at |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 print_job_title, | 628 print_job_title, |
| 629 file_type, | 629 file_type, |
| 630 false); | 630 false); |
| 631 return true; | 631 return true; |
| 632 } | 632 } |
| 633 } | 633 } |
| 634 return false; | 634 return false; |
| 635 } | 635 } |
| 636 | 636 |
| 637 } // end namespace | 637 } // end namespace |
| OLD | NEW |