| OLD | NEW |
| 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" | 13 #include "chrome/common/print_messages.h" |
| 14 #include "chrome/common/render_messages.h" | 14 #include "chrome/common/render_messages.h" |
| 15 #include "chrome/renderer/prerender/prerender_helper.h" | 15 #include "chrome/renderer/prerender/prerender_helper.h" |
| 16 #include "chrome/renderer/printing/print_web_view_helper.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 Loading... |
| 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 } |
| OLD | NEW |