| OLD | NEW |
| 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 "content/renderer/render_widget.h" | 5 #include "content/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
| 14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "content/common/pepper_file_messages.h" | 17 #include "content/common/pepper_file_messages.h" |
| 18 #include "content/common/swapped_out_messages.h" | 18 #include "content/common/swapped_out_messages.h" |
| 19 #include "content/common/view_messages.h" | 19 #include "content/common/view_messages.h" |
| 20 #include "content/public/common/content_switches.h" | 20 #include "content/public/common/content_switches.h" |
| 21 #include "content/renderer/render_process.h" | 21 #include "content/renderer/render_process.h" |
| 22 #include "content/renderer/render_thread_impl.h" | 22 #include "content/renderer/render_thread_impl.h" |
| 23 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | 23 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 24 #include "ipc/ipc_sync_message.h" | 24 #include "ipc/ipc_sync_message.h" |
| 25 #include "skia/ext/platform_canvas.h" | 25 #include "skia/ext/platform_canvas.h" |
| 26 #include "third_party/skia/include/core/SkShader.h" | |
| 27 #include "third_party/skia/include/effects/SkTableColorFilter.h" | |
| 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
| 29 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" | |
| 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPagePopup.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPagePopup.h" |
| 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" |
| 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" |
| 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" |
| 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 32 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" |
| 34 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
| 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | |
| 36 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 36 #include "third_party/skia/include/core/SkShader.h" |
| 37 #include "third_party/skia/include/effects/SkTableColorFilter.h" |
| 38 #include "ui/gfx/gl/gl_switches.h" | 38 #include "ui/gfx/gl/gl_switches.h" |
| 39 #include "ui/gfx/point.h" | 39 #include "ui/gfx/point.h" |
| 40 #include "ui/gfx/size.h" | 40 #include "ui/gfx/size.h" |
| 41 #include "ui/gfx/skia_util.h" | 41 #include "ui/gfx/skia_util.h" |
| 42 #include "ui/gfx/surface/transport_dib.h" | 42 #include "ui/surface/transport_dib.h" |
| 43 #include "webkit/glue/webkit_glue.h" | 43 #include "webkit/glue/webkit_glue.h" |
| 44 #include "webkit/plugins/npapi/webplugin.h" | 44 #include "webkit/plugins/npapi/webplugin.h" |
| 45 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 45 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 46 | 46 |
| 47 #if defined(OS_POSIX) | 47 #if defined(OS_POSIX) |
| 48 #include "ipc/ipc_channel_posix.h" | 48 #include "ipc/ipc_channel_posix.h" |
| 49 #include "third_party/skia/include/core/SkMallocPixelRef.h" |
| 49 #include "third_party/skia/include/core/SkPixelRef.h" | 50 #include "third_party/skia/include/core/SkPixelRef.h" |
| 50 #include "third_party/skia/include/core/SkMallocPixelRef.h" | |
| 51 #endif // defined(OS_POSIX) | 51 #endif // defined(OS_POSIX) |
| 52 | 52 |
| 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" | 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" |
| 54 | 54 |
| 55 using WebKit::WebCompositionUnderline; | 55 using WebKit::WebCompositionUnderline; |
| 56 using WebKit::WebCursorInfo; | 56 using WebKit::WebCursorInfo; |
| 57 using WebKit::WebInputEvent; | 57 using WebKit::WebInputEvent; |
| 58 using WebKit::WebMouseEvent; | 58 using WebKit::WebMouseEvent; |
| 59 using WebKit::WebNavigationPolicy; | 59 using WebKit::WebNavigationPolicy; |
| 60 using WebKit::WebPagePopup; | 60 using WebKit::WebPagePopup; |
| (...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 } | 1718 } |
| 1719 } | 1719 } |
| 1720 | 1720 |
| 1721 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { | 1721 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { |
| 1722 return false; | 1722 return false; |
| 1723 } | 1723 } |
| 1724 | 1724 |
| 1725 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { | 1725 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { |
| 1726 return false; | 1726 return false; |
| 1727 } | 1727 } |
| OLD | NEW |