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 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 #include "content/common/resize_params.h" | 59 #include "content/common/resize_params.h" |
| 60 #include "content/common/text_input_state.h" | 60 #include "content/common/text_input_state.h" |
| 61 #include "content/common/view_messages.h" | 61 #include "content/common/view_messages.h" |
| 62 #include "content/public/browser/native_web_keyboard_event.h" | 62 #include "content/public/browser/native_web_keyboard_event.h" |
| 63 #include "content/public/browser/notification_service.h" | 63 #include "content/public/browser/notification_service.h" |
| 64 #include "content/public/browser/notification_types.h" | 64 #include "content/public/browser/notification_types.h" |
| 65 #include "content/public/browser/render_widget_host_iterator.h" | 65 #include "content/public/browser/render_widget_host_iterator.h" |
| 66 #include "content/public/browser/storage_partition.h" | 66 #include "content/public/browser/storage_partition.h" |
| 67 #include "content/public/common/content_constants.h" | 67 #include "content/public/common/content_constants.h" |
| 68 #include "content/public/common/content_switches.h" | 68 #include "content/public/common/content_switches.h" |
| 69 #include "content/public/common/form_field_data.h" | |
| 69 #include "content/public/common/result_codes.h" | 70 #include "content/public/common/result_codes.h" |
| 70 #include "content/public/common/web_preferences.h" | 71 #include "content/public/common/web_preferences.h" |
| 71 #include "gpu/GLES2/gl2extchromium.h" | 72 #include "gpu/GLES2/gl2extchromium.h" |
| 72 #include "gpu/command_buffer/service/gpu_switches.h" | 73 #include "gpu/command_buffer/service/gpu_switches.h" |
| 73 #include "gpu/ipc/common/gpu_messages.h" | 74 #include "gpu/ipc/common/gpu_messages.h" |
| 74 #include "skia/ext/image_operations.h" | 75 #include "skia/ext/image_operations.h" |
| 75 #include "skia/ext/platform_canvas.h" | 76 #include "skia/ext/platform_canvas.h" |
| 76 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 77 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| 77 #include "ui/events/blink/web_input_event_traits.h" | 78 #include "ui/events/blink/web_input_event_traits.h" |
| 78 #include "ui/events/event.h" | 79 #include "ui/events/event.h" |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 489 OnShowDisambiguationPopup) | 490 OnShowDisambiguationPopup) |
| 490 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, | 491 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, |
| 491 OnSelectionBoundsChanged) | 492 OnSelectionBoundsChanged) |
| 492 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCompositionRangeChanged, | 493 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCompositionRangeChanged, |
| 493 OnImeCompositionRangeChanged) | 494 OnImeCompositionRangeChanged) |
| 494 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad, | 495 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad, |
| 495 OnFirstPaintAfterLoad) | 496 OnFirstPaintAfterLoad) |
| 496 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardCompositorProto, | 497 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardCompositorProto, |
| 497 OnForwardCompositorProto) | 498 OnForwardCompositorProto) |
| 498 IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames, OnSetNeedsBeginFrames) | 499 IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames, OnSetNeedsBeginFrames) |
| 500 IPC_MESSAGE_HANDLER(ViewHostMsg_SetFocusedFormFieldData, | |
| 501 OnFocusedFormFieldDataReply) | |
|
David Trainor- moved to gerrit
2016/11/03 04:25:49
Make this method name match the message name?
shaktisahu
2016/11/08 01:43:03
Done.
| |
| 499 IPC_MESSAGE_UNHANDLED(handled = false) | 502 IPC_MESSAGE_UNHANDLED(handled = false) |
| 500 IPC_END_MESSAGE_MAP() | 503 IPC_END_MESSAGE_MAP() |
| 501 | 504 |
| 502 if (!handled && input_router_ && input_router_->OnMessageReceived(msg)) | 505 if (!handled && input_router_ && input_router_->OnMessageReceived(msg)) |
| 503 return true; | 506 return true; |
| 504 | 507 |
| 505 if (!handled && view_ && view_->OnMessageReceived(msg)) | 508 if (!handled && view_ && view_->OnMessageReceived(msg)) |
| 506 return true; | 509 return true; |
| 507 | 510 |
| 508 return handled; | 511 return handled; |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1341 | 1344 |
| 1342 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { | 1345 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { |
| 1343 if (needs_begin_frames_ == needs_begin_frames) | 1346 if (needs_begin_frames_ == needs_begin_frames) |
| 1344 return; | 1347 return; |
| 1345 | 1348 |
| 1346 needs_begin_frames_ = needs_begin_frames; | 1349 needs_begin_frames_ = needs_begin_frames; |
| 1347 if (view_) | 1350 if (view_) |
| 1348 view_->SetNeedsBeginFrames(needs_begin_frames); | 1351 view_->SetNeedsBeginFrames(needs_begin_frames); |
| 1349 } | 1352 } |
| 1350 | 1353 |
| 1354 void RenderWidgetHostImpl::OnFocusedFormFieldDataReply( | |
| 1355 int request_id, | |
| 1356 const FormFieldData& field_data) { | |
| 1357 if (view_) | |
| 1358 view_->OnFocusedFormFieldDataReply(request_id, field_data); | |
| 1359 } | |
| 1360 | |
| 1351 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, | 1361 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, |
| 1352 int exit_code) { | 1362 int exit_code) { |
| 1353 if (!renderer_initialized_) | 1363 if (!renderer_initialized_) |
| 1354 return; | 1364 return; |
| 1355 | 1365 |
| 1356 // Clearing this flag causes us to re-create the renderer when recovering | 1366 // Clearing this flag causes us to re-create the renderer when recovering |
| 1357 // from a crashed renderer. | 1367 // from a crashed renderer. |
| 1358 renderer_initialized_ = false; | 1368 renderer_initialized_ = false; |
| 1359 | 1369 |
| 1360 waiting_for_screen_rects_ack_ = false; | 1370 waiting_for_screen_rects_ack_ = false; |
| (...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2222 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; | 2232 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; |
| 2223 } | 2233 } |
| 2224 | 2234 |
| 2225 BrowserAccessibilityManager* | 2235 BrowserAccessibilityManager* |
| 2226 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { | 2236 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { |
| 2227 return delegate_ ? | 2237 return delegate_ ? |
| 2228 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; | 2238 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; |
| 2229 } | 2239 } |
| 2230 | 2240 |
| 2231 } // namespace content | 2241 } // namespace content |
| OLD | NEW |