| 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 6253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6264 new FrameHostMsg_PepperInstanceDeleted(render_frame->GetRoutingID())); | 6264 new FrameHostMsg_PepperInstanceDeleted(render_frame->GetRoutingID())); |
| 6265 } | 6265 } |
| 6266 | 6266 |
| 6267 void RenderFrameImpl::PepperFocusChanged(PepperPluginInstanceImpl* instance, | 6267 void RenderFrameImpl::PepperFocusChanged(PepperPluginInstanceImpl* instance, |
| 6268 bool focused) { | 6268 bool focused) { |
| 6269 if (focused) | 6269 if (focused) |
| 6270 focused_pepper_plugin_ = instance; | 6270 focused_pepper_plugin_ = instance; |
| 6271 else if (focused_pepper_plugin_ == instance) | 6271 else if (focused_pepper_plugin_ == instance) |
| 6272 focused_pepper_plugin_ = nullptr; | 6272 focused_pepper_plugin_ = nullptr; |
| 6273 | 6273 |
| 6274 GetRenderWidget()->set_focused_pepper_plugin(focused_pepper_plugin_); |
| 6275 |
| 6274 GetRenderWidget()->UpdateTextInputState(ShowIme::HIDE_IME, | 6276 GetRenderWidget()->UpdateTextInputState(ShowIme::HIDE_IME, |
| 6275 ChangeSource::FROM_NON_IME); | 6277 ChangeSource::FROM_NON_IME); |
| 6276 GetRenderWidget()->UpdateSelectionBounds(); | 6278 GetRenderWidget()->UpdateSelectionBounds(); |
| 6277 } | 6279 } |
| 6278 | 6280 |
| 6279 void RenderFrameImpl::PepperStartsPlayback(PepperPluginInstanceImpl* instance) { | 6281 void RenderFrameImpl::PepperStartsPlayback(PepperPluginInstanceImpl* instance) { |
| 6280 // TODO(zqzhang): send PepperStartsPlayback message to the browser. | 6282 // TODO(zqzhang): send PepperStartsPlayback message to the browser. |
| 6281 // See https://crbug.com/619084 | 6283 // See https://crbug.com/619084 |
| 6282 } | 6284 } |
| 6283 | 6285 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6309 // event target. Potentially a Pepper plugin will receive the event. | 6311 // event target. Potentially a Pepper plugin will receive the event. |
| 6310 // In order to tell whether a plugin gets the last mouse event and which it | 6312 // In order to tell whether a plugin gets the last mouse event and which it |
| 6311 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6313 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6312 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6314 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6313 // |pepper_last_mouse_event_target_|. | 6315 // |pepper_last_mouse_event_target_|. |
| 6314 pepper_last_mouse_event_target_ = nullptr; | 6316 pepper_last_mouse_event_target_ = nullptr; |
| 6315 #endif | 6317 #endif |
| 6316 } | 6318 } |
| 6317 | 6319 |
| 6318 } // namespace content | 6320 } // namespace content |
| OLD | NEW |