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

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

Issue 11358027: Move constrained web dialog code back to chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros fix2 Created 8 years, 1 month 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 | Annotate | Revision Log
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 8
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 15 matching lines...) Expand all
26 #include "chrome/common/print_messages.h" 26 #include "chrome/common/print_messages.h"
27 #include "content/public/browser/web_contents.h" 27 #include "content/public/browser/web_contents.h"
28 #include "printing/page_size_margins.h" 28 #include "printing/page_size_margins.h"
29 #include "printing/print_job_constants.h" 29 #include "printing/print_job_constants.h"
30 #include "ui/gfx/rect.h" 30 #include "ui/gfx/rect.h"
31 #include "ui/web_dialogs/web_dialog_delegate.h" 31 #include "ui/web_dialogs/web_dialog_delegate.h"
32 #include "ui/web_dialogs/web_dialog_ui.h" 32 #include "ui/web_dialogs/web_dialog_ui.h"
33 33
34 using content::WebContents; 34 using content::WebContents;
35 using printing::PageSizeMargins; 35 using printing::PageSizeMargins;
36 using ui::ConstrainedWebDialogDelegate;
37 using ui::ConstrainedWebDialogUI;
38 36
39 namespace { 37 namespace {
40 38
41 // Thread-safe wrapper around a std::map to keep track of mappings from 39 // Thread-safe wrapper around a std::map to keep track of mappings from
42 // PrintPreviewUI IDs to most recent print preview request IDs. 40 // PrintPreviewUI IDs to most recent print preview request IDs.
43 class PrintPreviewRequestIdMapWithLock { 41 class PrintPreviewRequestIdMapWithLock {
44 public: 42 public:
45 PrintPreviewRequestIdMapWithLock() {} 43 PrintPreviewRequestIdMapWithLock() {}
46 ~PrintPreviewRequestIdMapWithLock() {} 44 ~PrintPreviewRequestIdMapWithLock() {}
47 45
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 delegate->OnDialogCloseFromWebUI(); 323 delegate->OnDialogCloseFromWebUI();
326 } 324 }
327 325
328 void PrintPreviewUI::OnReloadPrintersList() { 326 void PrintPreviewUI::OnReloadPrintersList() {
329 web_ui()->CallJavascriptFunction("reloadPrintersList"); 327 web_ui()->CallJavascriptFunction("reloadPrintersList");
330 } 328 }
331 329
332 void PrintPreviewUI::OnPrintPreviewScalingDisabled() { 330 void PrintPreviewUI::OnPrintPreviewScalingDisabled() {
333 web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF"); 331 web_ui()->CallJavascriptFunction("printScalingDisabledForSourcePDF");
334 } 332 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.h ('k') | chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698