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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 is_hidden_(hidden), | 155 is_hidden_(hidden), |
156 repaint_ack_pending_(false), | 156 repaint_ack_pending_(false), |
157 resize_ack_pending_(false), | 157 resize_ack_pending_(false), |
158 auto_resize_enabled_(false), | 158 auto_resize_enabled_(false), |
159 waiting_for_screen_rects_ack_(false), | 159 waiting_for_screen_rects_ack_(false), |
160 needs_repainting_on_restore_(false), | 160 needs_repainting_on_restore_(false), |
161 is_unresponsive_(false), | 161 is_unresponsive_(false), |
162 in_flight_event_count_(0), | 162 in_flight_event_count_(0), |
163 in_get_backing_store_(false), | 163 in_get_backing_store_(false), |
164 ignore_input_events_(false), | 164 ignore_input_events_(false), |
165 input_method_active_(false), | |
166 text_direction_updated_(false), | 165 text_direction_updated_(false), |
167 text_direction_(blink::WebTextDirectionLeftToRight), | 166 text_direction_(blink::WebTextDirectionLeftToRight), |
168 text_direction_canceled_(false), | 167 text_direction_canceled_(false), |
169 suppress_next_char_events_(false), | 168 suppress_next_char_events_(false), |
170 pending_mouse_lock_request_(false), | 169 pending_mouse_lock_request_(false), |
171 allow_privileged_mouse_lock_(false), | 170 allow_privileged_mouse_lock_(false), |
172 has_touch_handler_(false), | 171 has_touch_handler_(false), |
173 next_browser_snapshot_id_(1), | 172 next_browser_snapshot_id_(1), |
174 owned_by_render_frame_host_(false), | 173 owned_by_render_frame_host_(false), |
175 is_focused_(false), | 174 is_focused_(false), |
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 | 1241 |
1243 void RenderWidgetHostImpl::NotifyTextDirection() { | 1242 void RenderWidgetHostImpl::NotifyTextDirection() { |
1244 if (text_direction_updated_) { | 1243 if (text_direction_updated_) { |
1245 if (!text_direction_canceled_) | 1244 if (!text_direction_canceled_) |
1246 Send(new ViewMsg_SetTextDirection(GetRoutingID(), text_direction_)); | 1245 Send(new ViewMsg_SetTextDirection(GetRoutingID(), text_direction_)); |
1247 text_direction_updated_ = false; | 1246 text_direction_updated_ = false; |
1248 text_direction_canceled_ = false; | 1247 text_direction_canceled_ = false; |
1249 } | 1248 } |
1250 } | 1249 } |
1251 | 1250 |
1252 void RenderWidgetHostImpl::SetInputMethodActive(bool activate) { | |
1253 input_method_active_ = activate; | |
1254 Send(new ViewMsg_SetInputMethodActive(GetRoutingID(), activate)); | |
1255 } | |
1256 | |
1257 void RenderWidgetHostImpl::ImeSetComposition( | 1251 void RenderWidgetHostImpl::ImeSetComposition( |
1258 const base::string16& text, | 1252 const base::string16& text, |
1259 const std::vector<blink::WebCompositionUnderline>& underlines, | 1253 const std::vector<blink::WebCompositionUnderline>& underlines, |
1260 int selection_start, | 1254 int selection_start, |
1261 int selection_end) { | 1255 int selection_end) { |
1262 Send(new InputMsg_ImeSetComposition( | 1256 Send(new InputMsg_ImeSetComposition( |
1263 GetRoutingID(), text, underlines, selection_start, selection_end)); | 1257 GetRoutingID(), text, underlines, selection_start, selection_end)); |
1264 } | 1258 } |
1265 | 1259 |
1266 void RenderWidgetHostImpl::ImeConfirmComposition( | 1260 void RenderWidgetHostImpl::ImeConfirmComposition( |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2094 } | 2088 } |
2095 | 2089 |
2096 #if defined(OS_WIN) | 2090 #if defined(OS_WIN) |
2097 gfx::NativeViewAccessible | 2091 gfx::NativeViewAccessible |
2098 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2092 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
2099 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2093 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
2100 } | 2094 } |
2101 #endif | 2095 #endif |
2102 | 2096 |
2103 } // namespace content | 2097 } // namespace content |
OLD | NEW |