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 "chrome/browser/ui/webui/print_preview/print_preview_handler.h" | 5 #include "chrome/browser/ui/webui/print_preview/print_preview_handler.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1922 | 1922 |
1923 void PrintPreviewHandler::UnregisterForGaiaCookieChanges() { | 1923 void PrintPreviewHandler::UnregisterForGaiaCookieChanges() { |
1924 if (gaia_cookie_manager_service_) | 1924 if (gaia_cookie_manager_service_) |
1925 gaia_cookie_manager_service_->RemoveObserver(this); | 1925 gaia_cookie_manager_service_->RemoveObserver(this); |
1926 } | 1926 } |
1927 | 1927 |
1928 void PrintPreviewHandler::SetPdfSavedClosureForTesting( | 1928 void PrintPreviewHandler::SetPdfSavedClosureForTesting( |
1929 const base::Closure& closure) { | 1929 const base::Closure& closure) { |
1930 pdf_file_saved_closure_ = closure; | 1930 pdf_file_saved_closure_ = closure; |
1931 } | 1931 } |
| 1932 |
| 1933 void PrintPreviewHandler::SendEnableManipulateSettingsForTest() { |
| 1934 FireWebUIListener("enable-manipulate-settings-for-test", base::Value()); |
| 1935 } |
| 1936 |
| 1937 void PrintPreviewHandler::SendManipulateSettingsForTest( |
| 1938 const base::DictionaryValue& settings) { |
| 1939 FireWebUIListener("manipulate-settings-for-test", settings); |
| 1940 } |
OLD | NEW |