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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud.cc

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
OLDNEW
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/command_line.h" 10 #include "base/command_line.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/json/json_reader.h" 12 #include "base/json/json_reader.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/browser_list.h" 15 #include "chrome/browser/browser_list.h"
16 #include "chrome/browser/chrome_thread.h" 16 #include "chrome/browser/chrome_thread.h"
17 #include "chrome/browser/debugger/devtools_manager.h"
17 #include "chrome/browser/dom_ui/dom_ui.h" 18 #include "chrome/browser/dom_ui/dom_ui.h"
18 #include "chrome/browser/dom_ui/dom_ui_util.h" 19 #include "chrome/browser/dom_ui/dom_ui_util.h"
19 #include "chrome/browser/dom_ui/html_dialog_ui.h" 20 #include "chrome/browser/dom_ui/html_dialog_ui.h"
20 #include "chrome/browser/debugger/devtools_manager.h" 21 #include "chrome/browser/prefs/pref_service.h"
21 #include "chrome/browser/profile.h" 22 #include "chrome/browser/profile.h"
22 #include "chrome/browser/pref_service.h" 23 #include "chrome/browser/renderer_host/render_view_host.h"
23 #include "chrome/browser/tab_contents/tab_contents.h" 24 #include "chrome/browser/tab_contents/tab_contents.h"
24 #include "chrome/browser/renderer_host/render_view_host.h"
25 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
26 #include "chrome/common/pref_names.h"
27 #include "chrome/common/notification_observer.h" 26 #include "chrome/common/notification_observer.h"
28 #include "chrome/common/notification_registrar.h" 27 #include "chrome/common/notification_registrar.h"
29 #include "chrome/common/notification_source.h" 28 #include "chrome/common/notification_source.h"
30 #include "chrome/common/notification_type.h" 29 #include "chrome/common/notification_type.h"
30 #include "chrome/common/pref_names.h"
31 #include "chrome/common/render_messages_params.h" 31 #include "chrome/common/render_messages_params.h"
32 #include "chrome/common/url_constants.h" 32 #include "chrome/common/url_constants.h"
33 #include "webkit/glue/webpreferences.h" 33 #include "webkit/glue/webpreferences.h"
34 34
35 #include "grit/generated_resources.h" 35 #include "grit/generated_resources.h"
36 36
37 // This module implements the UI support in Chrome for cloud printing. 37 // This module implements the UI support in Chrome for cloud printing.
38 // This means hosting a dialog containing HTML/JavaScript and using 38 // This means hosting a dialog containing HTML/JavaScript and using
39 // the published cloud print user interface integration APIs to get 39 // the published cloud print user interface integration APIs to get
40 // page setup settings from the dialog contents and provide the 40 // page setup settings from the dialog contents and provide the
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // TODO(scottbyer): Get the dialog width, height from the dialog 519 // TODO(scottbyer): Get the dialog width, height from the dialog
520 // contents, and take the screen size into account. 520 // contents, and take the screen size into account.
521 HtmlDialogUIDelegate* dialog_delegate = 521 HtmlDialogUIDelegate* dialog_delegate =
522 new internal_cloud_print_helpers::CloudPrintHtmlDialogDelegate( 522 new internal_cloud_print_helpers::CloudPrintHtmlDialogDelegate(
523 path_to_pdf, 500, 400, std::string(), print_job_title); 523 path_to_pdf, 500, 400, std::string(), print_job_title);
524 browser_->BrowserShowHtmlDialog(dialog_delegate, NULL); 524 browser_->BrowserShowHtmlDialog(dialog_delegate, NULL);
525 } 525 }
526 526
527 PrintDialogCloud::~PrintDialogCloud() { 527 PrintDialogCloud::~PrintDialogCloud() {
528 } 528 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698