OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1292 return; | 1292 return; |
1293 GetRenderWidget()->UpdateSelectionBounds(); | 1293 GetRenderWidget()->UpdateSelectionBounds(); |
1294 } | 1294 } |
1295 | 1295 |
1296 void RenderFrameImpl::PepperCancelComposition( | 1296 void RenderFrameImpl::PepperCancelComposition( |
1297 PepperPluginInstanceImpl* instance) { | 1297 PepperPluginInstanceImpl* instance) { |
1298 if (instance != focused_pepper_plugin_) | 1298 if (instance != focused_pepper_plugin_) |
1299 return; | 1299 return; |
1300 Send(new InputHostMsg_ImeCancelComposition(render_view_->GetRoutingID())); | 1300 Send(new InputHostMsg_ImeCancelComposition(render_view_->GetRoutingID())); |
1301 #if defined(OS_MACOSX) || defined(USE_AURA) | 1301 #if defined(OS_MACOSX) || defined(USE_AURA) |
1302 GetRenderWidget()->UpdateCompositionInfo(true); | 1302 GetRenderWidget()->UpdateCompositionInfo(true, false /* force update */); |
yosin_UTC9
2016/07/06 02:02:01
How about
const bool shouldUpdateRange = true;
c
Seigo Nonaka
2016/07/06 03:25:56
Done.
| |
1303 #endif | 1303 #endif |
1304 } | 1304 } |
1305 | 1305 |
1306 void RenderFrameImpl::PepperSelectionChanged( | 1306 void RenderFrameImpl::PepperSelectionChanged( |
1307 PepperPluginInstanceImpl* instance) { | 1307 PepperPluginInstanceImpl* instance) { |
1308 if (instance != focused_pepper_plugin_) | 1308 if (instance != focused_pepper_plugin_) |
1309 return; | 1309 return; |
1310 SyncSelectionIfRequired(); | 1310 SyncSelectionIfRequired(); |
1311 } | 1311 } |
1312 | 1312 |
(...skipping 5014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6327 // event target. Potentially a Pepper plugin will receive the event. | 6327 // event target. Potentially a Pepper plugin will receive the event. |
6328 // In order to tell whether a plugin gets the last mouse event and which it | 6328 // In order to tell whether a plugin gets the last mouse event and which it |
6329 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6329 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6330 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6330 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6331 // |pepper_last_mouse_event_target_|. | 6331 // |pepper_last_mouse_event_target_|. |
6332 pepper_last_mouse_event_target_ = nullptr; | 6332 pepper_last_mouse_event_target_ = nullptr; |
6333 #endif | 6333 #endif |
6334 } | 6334 } |
6335 | 6335 |
6336 } // namespace content | 6336 } // namespace content |
OLD | NEW |