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

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.cc

Issue 2978673002: Update print preview test to not use CallJavascriptFunctionUnsafe (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.h ('k') | no next file » | 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) 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 "chrome/browser/ui/webui/print_preview/print_preview_ui.h" 5 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
6 6
7 #include <map> 7 #include <map>
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 } 688 }
689 689
690 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { 690 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) {
691 handler_->FileSelected(path, 0, NULL); 691 handler_->FileSelected(path, 0, NULL);
692 } 692 }
693 693
694 void PrintPreviewUI::SetPdfSavedClosureForTesting( 694 void PrintPreviewUI::SetPdfSavedClosureForTesting(
695 const base::Closure& closure) { 695 const base::Closure& closure) {
696 handler_->SetPdfSavedClosureForTesting(closure); 696 handler_->SetPdfSavedClosureForTesting(closure);
697 } 697 }
698
699 void PrintPreviewUI::SendEnableManipulateSettingsForTest() {
700 handler_->SendEnableManipulateSettingsForTest();
701 }
702
703 void PrintPreviewUI::SendManipulateSettingsForTest(
704 const base::DictionaryValue& settings) {
705 handler_->SendManipulateSettingsForTest(settings);
706 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698