| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "components/scheduler/renderer/renderer_scheduler.h" | 30 #include "components/scheduler/renderer/renderer_scheduler.h" |
| 31 #include "content/child/npapi/webplugin.h" | 31 #include "content/child/npapi/webplugin.h" |
| 32 #include "content/common/content_switches_internal.h" | 32 #include "content/common/content_switches_internal.h" |
| 33 #include "content/common/gpu/client/context_provider_command_buffer.h" | 33 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 34 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 34 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 35 #include "content/common/gpu/gpu_process_launch_causes.h" | 35 #include "content/common/gpu/gpu_process_launch_causes.h" |
| 36 #include "content/common/input/synthetic_gesture_packet.h" | 36 #include "content/common/input/synthetic_gesture_packet.h" |
| 37 #include "content/common/input/web_input_event_traits.h" | 37 #include "content/common/input/web_input_event_traits.h" |
| 38 #include "content/common/input_messages.h" | 38 #include "content/common/input_messages.h" |
| 39 #include "content/common/swapped_out_messages.h" | 39 #include "content/common/swapped_out_messages.h" |
| 40 #include "content/common/text_input_state.h" |
| 40 #include "content/common/view_messages.h" | 41 #include "content/common/view_messages.h" |
| 41 #include "content/public/common/content_switches.h" | 42 #include "content/public/common/content_switches.h" |
| 42 #include "content/public/common/context_menu_params.h" | 43 #include "content/public/common/context_menu_params.h" |
| 43 #include "content/renderer/cursor_utils.h" | 44 #include "content/renderer/cursor_utils.h" |
| 44 #include "content/renderer/external_popup_menu.h" | 45 #include "content/renderer/external_popup_menu.h" |
| 45 #include "content/renderer/gpu/compositor_output_surface.h" | 46 #include "content/renderer/gpu/compositor_output_surface.h" |
| 46 #include "content/renderer/gpu/delegated_compositor_output_surface.h" | 47 #include "content/renderer/gpu/delegated_compositor_output_surface.h" |
| 47 #include "content/renderer/gpu/frame_swap_message_queue.h" | 48 #include "content/renderer/gpu/frame_swap_message_queue.h" |
| 48 #include "content/renderer/gpu/mailbox_output_surface.h" | 49 #include "content/renderer/gpu/mailbox_output_surface.h" |
| 49 #include "content/renderer/gpu/queue_message_swap_promise.h" | 50 #include "content/renderer/gpu/queue_message_swap_promise.h" |
| (...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1307 // Only sends text input params if they are changed or if the ime should be | 1308 // Only sends text input params if they are changed or if the ime should be |
| 1308 // shown. | 1309 // shown. |
| 1309 if (show_ime == ShowIme::IF_NEEDED || | 1310 if (show_ime == ShowIme::IF_NEEDED || |
| 1310 (text_input_type_ != new_type || text_input_mode_ != new_mode || | 1311 (text_input_type_ != new_type || text_input_mode_ != new_mode || |
| 1311 text_input_info_ != new_info || | 1312 text_input_info_ != new_info || |
| 1312 can_compose_inline_ != new_can_compose_inline) | 1313 can_compose_inline_ != new_can_compose_inline) |
| 1313 #if defined(OS_ANDROID) | 1314 #if defined(OS_ANDROID) |
| 1314 || text_field_is_dirty_ | 1315 || text_field_is_dirty_ |
| 1315 #endif | 1316 #endif |
| 1316 ) { | 1317 ) { |
| 1317 ViewHostMsg_TextInputState_Params params; | 1318 TextInputState params; |
| 1318 params.type = new_type; | 1319 params.type = new_type; |
| 1319 params.mode = new_mode; | 1320 params.mode = new_mode; |
| 1320 params.flags = new_info.flags; | 1321 params.flags = new_info.flags; |
| 1321 params.value = new_info.value.utf8(); | 1322 params.value = new_info.value.utf8(); |
| 1322 params.selection_start = new_info.selectionStart; | 1323 params.selection_start = new_info.selectionStart; |
| 1323 params.selection_end = new_info.selectionEnd; | 1324 params.selection_end = new_info.selectionEnd; |
| 1324 params.composition_start = new_info.compositionStart; | 1325 params.composition_start = new_info.compositionStart; |
| 1325 params.composition_end = new_info.compositionEnd; | 1326 params.composition_end = new_info.compositionEnd; |
| 1326 params.can_compose_inline = new_can_compose_inline; | 1327 params.can_compose_inline = new_can_compose_inline; |
| 1327 params.show_ime_if_needed = (show_ime == ShowIme::IF_NEEDED); | 1328 params.show_ime_if_needed = (show_ime == ShowIme::IF_NEEDED); |
| (...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2294 video_hole_frames_.RemoveObserver(frame); | 2295 video_hole_frames_.RemoveObserver(frame); |
| 2295 } | 2296 } |
| 2296 #endif // defined(VIDEO_HOLE) | 2297 #endif // defined(VIDEO_HOLE) |
| 2297 | 2298 |
| 2298 void RenderWidget::OnWaitNextFrameForTests(int routing_id) { | 2299 void RenderWidget::OnWaitNextFrameForTests(int routing_id) { |
| 2299 QueueMessage(new ViewHostMsg_WaitForNextFrameForTests_ACK(routing_id), | 2300 QueueMessage(new ViewHostMsg_WaitForNextFrameForTests_ACK(routing_id), |
| 2300 MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE); | 2301 MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE); |
| 2301 } | 2302 } |
| 2302 | 2303 |
| 2303 } // namespace content | 2304 } // namespace content |
| OLD | NEW |