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

Side by Side Diff: chrome/renderer/chrome_render_frame_observer.cc

Issue 811563008: Moving files from //chrome to //components/printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix deps, owners, readme Created 5 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/chrome_render_frame_observer.h" 5 #include "chrome/renderer/chrome_render_frame_observer.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/common/prerender_messages.h" 12 #include "chrome/common/prerender_messages.h"
13 #include "chrome/common/print_messages.h"
14 #include "chrome/common/render_messages.h" 13 #include "chrome/common/render_messages.h"
15 #include "chrome/renderer/prerender/prerender_helper.h" 14 #include "chrome/renderer/prerender/prerender_helper.h"
16 #include "chrome/renderer/printing/print_web_view_helper.h" 15 #include "components/printing/common/print_messages.h"
16 #include "components/printing/renderer/print_web_view_helper.h"
17 #include "content/public/renderer/render_frame.h" 17 #include "content/public/renderer/render_frame.h"
18 #include "skia/ext/image_operations.h" 18 #include "skia/ext/image_operations.h"
19 #include "third_party/WebKit/public/platform/WebImage.h" 19 #include "third_party/WebKit/public/platform/WebImage.h"
20 #include "third_party/WebKit/public/web/WebElement.h" 20 #include "third_party/WebKit/public/web/WebElement.h"
21 #include "third_party/WebKit/public/web/WebNode.h" 21 #include "third_party/WebKit/public/web/WebNode.h"
22 #include "third_party/skia/include/core/SkBitmap.h" 22 #include "third_party/skia/include/core/SkBitmap.h"
23 #include "ui/gfx/codec/jpeg_codec.h" 23 #include "ui/gfx/codec/jpeg_codec.h"
24 24
25 using blink::WebElement; 25 using blink::WebElement;
26 using blink::WebNode; 26 using blink::WebNode;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 Send(new ChromeViewHostMsg_RequestThumbnailForContextNode_ACK( 144 Send(new ChromeViewHostMsg_RequestThumbnailForContextNode_ACK(
145 routing_id(), thumbnail_data, original_size)); 145 routing_id(), thumbnail_data, original_size));
146 } 146 }
147 147
148 void ChromeRenderFrameObserver::OnPrintNodeUnderContextMenu() { 148 void ChromeRenderFrameObserver::OnPrintNodeUnderContextMenu() {
149 printing::PrintWebViewHelper* helper = 149 printing::PrintWebViewHelper* helper =
150 printing::PrintWebViewHelper::Get(render_frame()->GetRenderView()); 150 printing::PrintWebViewHelper::Get(render_frame()->GetRenderView());
151 if (helper) 151 if (helper)
152 helper->PrintNode(render_frame()->GetContextMenuNode()); 152 helper->PrintNode(render_frame()->GetContextMenuNode());
153 } 153 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_mock_render_thread.cc ('k') | chrome/renderer/pepper/chrome_pdf_print_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698