Chromium Code Reviews| 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/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 #include "content/browser/renderer_host/input/timeout_monitor.h" | 41 #include "content/browser/renderer_host/input/timeout_monitor.h" |
| 42 #include "content/browser/renderer_host/input/touch_emulator.h" | 42 #include "content/browser/renderer_host/input/touch_emulator.h" |
| 43 #include "content/browser/renderer_host/render_process_host_impl.h" | 43 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 44 #include "content/browser/renderer_host/render_view_host_impl.h" | 44 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 45 #include "content/browser/renderer_host/render_widget_helper.h" | 45 #include "content/browser/renderer_host/render_widget_helper.h" |
| 46 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 46 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 47 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 47 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 48 #include "content/browser/renderer_host/render_widget_resize_helper.h" | 48 #include "content/browser/renderer_host/render_widget_resize_helper.h" |
| 49 #include "content/common/content_constants_internal.h" | 49 #include "content/common/content_constants_internal.h" |
| 50 #include "content/common/cursors/webcursor.h" | 50 #include "content/common/cursors/webcursor.h" |
| 51 #include "content/common/frame_messages.h" | |
| 51 #include "content/common/gpu/gpu_messages.h" | 52 #include "content/common/gpu/gpu_messages.h" |
| 52 #include "content/common/host_shared_bitmap_manager.h" | 53 #include "content/common/host_shared_bitmap_manager.h" |
| 53 #include "content/common/input_messages.h" | 54 #include "content/common/input_messages.h" |
| 54 #include "content/common/view_messages.h" | 55 #include "content/common/view_messages.h" |
| 55 #include "content/public/browser/native_web_keyboard_event.h" | 56 #include "content/public/browser/native_web_keyboard_event.h" |
| 56 #include "content/public/browser/notification_service.h" | 57 #include "content/public/browser/notification_service.h" |
| 57 #include "content/public/browser/notification_types.h" | 58 #include "content/public/browser/notification_types.h" |
| 58 #include "content/public/browser/render_widget_host_iterator.h" | 59 #include "content/public/browser/render_widget_host_iterator.h" |
| 59 #include "content/public/browser/user_metrics.h" | 60 #include "content/public/browser/user_metrics.h" |
| 60 #include "content/public/common/content_constants.h" | 61 #include "content/public/common/content_constants.h" |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 437 return is_loading_; | 438 return is_loading_; |
| 438 } | 439 } |
| 439 | 440 |
| 440 bool RenderWidgetHostImpl::IsRenderView() const { | 441 bool RenderWidgetHostImpl::IsRenderView() const { |
| 441 return false; | 442 return false; |
| 442 } | 443 } |
| 443 | 444 |
| 444 bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) { | 445 bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) { |
| 445 bool handled = true; | 446 bool handled = true; |
| 446 IPC_BEGIN_MESSAGE_MAP(RenderWidgetHostImpl, msg) | 447 IPC_BEGIN_MESSAGE_MAP(RenderWidgetHostImpl, msg) |
| 448 IPC_MESSAGE_HANDLER(FrameHostMsg_RenderProcessGone, OnRenderProcessGone) | |
|
Charlie Reis
2015/02/03 01:06:35
Huh. I guess we'll need to handle some FrameHostM
nasko
2015/02/04 16:51:31
Well, it is not a frame specific message to be hon
| |
| 447 IPC_MESSAGE_HANDLER(InputHostMsg_QueueSyntheticGesture, | 449 IPC_MESSAGE_HANDLER(InputHostMsg_QueueSyntheticGesture, |
| 448 OnQueueSyntheticGesture) | 450 OnQueueSyntheticGesture) |
| 449 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCancelComposition, | 451 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCancelComposition, |
| 450 OnImeCancelComposition) | 452 OnImeCancelComposition) |
| 451 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnRenderViewReady) | 453 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnRenderViewReady) |
| 452 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderProcessGone, OnRenderProcessGone) | |
| 453 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose) | 454 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose) |
| 454 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK, | 455 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK, |
| 455 OnUpdateScreenRectsAck) | 456 OnUpdateScreenRectsAck) |
| 456 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove) | 457 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove) |
| 457 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText) | 458 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText) |
| 458 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame, | 459 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame, |
| 459 OnSwapCompositorFrame(msg)) | 460 OnSwapCompositorFrame(msg)) |
| 460 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopFlinging, OnFlingingStopped) | 461 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopFlinging, OnFlingingStopped) |
| 461 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) | 462 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) |
| 462 IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnFocus) | 463 IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnFocus) |
| (...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2192 } | 2193 } |
| 2193 #endif | 2194 #endif |
| 2194 | 2195 |
| 2195 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { | 2196 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { |
| 2196 if (view_) | 2197 if (view_) |
| 2197 return view_->PreferredReadbackFormat(); | 2198 return view_->PreferredReadbackFormat(); |
| 2198 return kN32_SkColorType; | 2199 return kN32_SkColorType; |
| 2199 } | 2200 } |
| 2200 | 2201 |
| 2201 } // namespace content | 2202 } // namespace content |
| OLD | NEW |