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

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

Issue 357203003: Move webpreferences.* from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderView::FromWebView Created 6 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 | 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/printing/print_dialog_cloud.h" 5 #include "chrome/browser/printing/print_dialog_cloud.h"
6 6
7 7
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 21 matching lines...) Expand all
32 #include "content/public/browser/navigation_controller.h" 32 #include "content/public/browser/navigation_controller.h"
33 #include "content/public/browser/navigation_entry.h" 33 #include "content/public/browser/navigation_entry.h"
34 #include "content/public/browser/notification_registrar.h" 34 #include "content/public/browser/notification_registrar.h"
35 #include "content/public/browser/notification_source.h" 35 #include "content/public/browser/notification_source.h"
36 #include "content/public/browser/notification_types.h" 36 #include "content/public/browser/notification_types.h"
37 #include "content/public/browser/render_view_host.h" 37 #include "content/public/browser/render_view_host.h"
38 #include "content/public/browser/web_contents.h" 38 #include "content/public/browser/web_contents.h"
39 #include "content/public/browser/web_contents_observer.h" 39 #include "content/public/browser/web_contents_observer.h"
40 #include "content/public/browser/web_ui.h" 40 #include "content/public/browser/web_ui.h"
41 #include "content/public/common/frame_navigate_params.h" 41 #include "content/public/common/frame_navigate_params.h"
42 #include "webkit/common/webpreferences.h" 42 #include "content/public/common/web_preferences.h"
43 43
44 #if defined(USE_AURA) 44 #if defined(USE_AURA)
45 #include "ui/aura/window.h" 45 #include "ui/aura/window.h"
46 #include "ui/aura/window_tree_host.h" 46 #include "ui/aura/window_tree_host.h"
47 #endif 47 #endif
48 48
49 #if defined(OS_WIN) 49 #if defined(OS_WIN)
50 #include "ui/base/win/foreground_helper.h" 50 #include "ui/base/win/foreground_helper.h"
51 #endif 51 #endif
52 52
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // When the dialog contents are finished (by either being cancelled or 106 // When the dialog contents are finished (by either being cancelled or
107 // hitting the print button), the delegate is notified, and responds 107 // hitting the print button), the delegate is notified, and responds
108 // that the dialog should be closed, at which point things are torn 108 // that the dialog should be closed, at which point things are torn
109 // down and released. 109 // down and released.
110 110
111 using content::BrowserThread; 111 using content::BrowserThread;
112 using content::NavigationController; 112 using content::NavigationController;
113 using content::NavigationEntry; 113 using content::NavigationEntry;
114 using content::RenderViewHost; 114 using content::RenderViewHost;
115 using content::WebContents; 115 using content::WebContents;
116 using content::WebPreferences;
116 using content::WebUIMessageHandler; 117 using content::WebUIMessageHandler;
117 using ui::WebDialogDelegate; 118 using ui::WebDialogDelegate;
118 119
119 namespace { 120 namespace {
120 121
121 const int kDefaultWidth = 912; 122 const int kDefaultWidth = 912;
122 const int kDefaultHeight = 633; 123 const int kDefaultHeight = 633;
123 124
124 bool IsSimilarUrl(const GURL& url, const GURL& cloud_print_url) { 125 bool IsSimilarUrl(const GURL& url, const GURL& cloud_print_url) {
125 return url.host() == cloud_print_url.host() && 126 return url.host() == cloud_print_url.host() &&
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 763
763 print_dialog_cloud::CreatePrintDialogForFile(profile, NULL, 764 print_dialog_cloud::CreatePrintDialogForFile(profile, NULL,
764 cloud_print_file, print_job_title, print_job_print_ticket, file_type); 765 cloud_print_file, print_job_title, print_job_print_ticket, file_type);
765 return true; 766 return true;
766 } 767 }
767 } 768 }
768 return false; 769 return false;
769 } 770 }
770 771
771 } // namespace print_dialog_cloud 772 } // namespace print_dialog_cloud
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698