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

Side by Side Diff: trunk/src/chrome/renderer/printing/print_web_view_helper.cc

Issue 16232014: Revert 203261 "split webkit/glue/webpreferences to common and re..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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/renderer/printing/print_web_view_helper.h" 5 #include "chrome/renderer/printing/print_web_view_helper.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 27 matching lines...) Expand all
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h"
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPrintParams.h" 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPrintParams.h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPrintScalingOption .h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPrintScalingOption .h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h"
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h"
46 #include "ui/base/l10n/l10n_util.h" 46 #include "ui/base/l10n/l10n_util.h"
47 #include "ui/base/resource/resource_bundle.h" 47 #include "ui/base/resource/resource_bundle.h"
48 #include "webkit/common/webpreferences.h" 48 #include "webkit/glue/webpreferences.h"
49 #include "webkit/renderer/webpreferences_renderer.h"
50 49
51 namespace printing { 50 namespace printing {
52 51
53 namespace { 52 namespace {
54 53
55 const double kMinDpi = 1.0; 54 const double kMinDpi = 1.0;
56 55
57 const char kPageLoadScriptFormat[] = 56 const char kPageLoadScriptFormat[] =
58 "document.open(); document.write(%s); document.close();"; 57 "document.open(); document.write(%s); document.close();";
59 58
(...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 } 1984 }
1986 1985
1987 void PrintWebViewHelper::PrintPreviewContext::ClearContext() { 1986 void PrintWebViewHelper::PrintPreviewContext::ClearContext() {
1988 prep_frame_view_.reset(); 1987 prep_frame_view_.reset();
1989 metafile_.reset(); 1988 metafile_.reset();
1990 pages_to_render_.clear(); 1989 pages_to_render_.clear();
1991 error_ = PREVIEW_ERROR_NONE; 1990 error_ = PREVIEW_ERROR_NONE;
1992 } 1991 }
1993 1992
1994 } // namespace printing 1993 } // namespace printing
OLDNEW
« no previous file with comments | « trunk/src/chrome/renderer/plugins/webview_plugin.cc ('k') | trunk/src/content/browser/android/content_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698