Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2029423003: OOPIF IME: Renderer Side Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undid Changes to render_frame_impl.h Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/render_view_impl.h » ('j') | content/renderer/render_widget.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6064 matching lines...) Expand 10 before | Expand all | Expand 10 after
6075 new FrameHostMsg_PepperInstanceDeleted(render_frame->GetRoutingID())); 6075 new FrameHostMsg_PepperInstanceDeleted(render_frame->GetRoutingID()));
6076 } 6076 }
6077 6077
6078 void RenderFrameImpl::PepperFocusChanged(PepperPluginInstanceImpl* instance, 6078 void RenderFrameImpl::PepperFocusChanged(PepperPluginInstanceImpl* instance,
6079 bool focused) { 6079 bool focused) {
6080 if (focused) 6080 if (focused)
6081 focused_pepper_plugin_ = instance; 6081 focused_pepper_plugin_ = instance;
6082 else if (focused_pepper_plugin_ == instance) 6082 else if (focused_pepper_plugin_ == instance)
6083 focused_pepper_plugin_ = nullptr; 6083 focused_pepper_plugin_ = nullptr;
6084 6084
6085 GetRenderWidget()->set_focused_pepper_plugin(focused_pepper_plugin_);
6086
6085 GetRenderWidget()->UpdateTextInputState(ShowIme::HIDE_IME, 6087 GetRenderWidget()->UpdateTextInputState(ShowIme::HIDE_IME,
6086 ChangeSource::FROM_NON_IME); 6088 ChangeSource::FROM_NON_IME);
6087 GetRenderWidget()->UpdateSelectionBounds(); 6089 GetRenderWidget()->UpdateSelectionBounds();
6088 } 6090 }
6089 6091
6090 #endif // ENABLE_PLUGINS 6092 #endif // ENABLE_PLUGINS
6091 6093
6092 void RenderFrameImpl::RenderWidgetSetFocus(bool enable) { 6094 void RenderFrameImpl::RenderWidgetSetFocus(bool enable) {
6093 #if defined(ENABLE_PLUGINS) 6095 #if defined(ENABLE_PLUGINS)
6094 // Notify all Pepper plugins. 6096 // Notify all Pepper plugins.
6095 for (auto* plugin : active_pepper_instances_) 6097 for (auto* plugin : active_pepper_instances_)
6096 plugin->SetContentAreaFocus(enable); 6098 plugin->SetContentAreaFocus(enable);
6097 #endif 6099 #endif
6098 } 6100 }
6099 6101
6100 void RenderFrameImpl::RenderWidgetWillHandleMouseEvent() { 6102 void RenderFrameImpl::RenderWidgetWillHandleMouseEvent() {
6101 #if defined(ENABLE_PLUGINS) 6103 #if defined(ENABLE_PLUGINS)
6102 // This method is called for every mouse event that the RenderWidget receives. 6104 // This method is called for every mouse event that the RenderWidget receives.
6103 // And then the mouse event is forwarded to blink, which dispatches it to the 6105 // And then the mouse event is forwarded to blink, which dispatches it to the
6104 // event target. Potentially a Pepper plugin will receive the event. 6106 // event target. Potentially a Pepper plugin will receive the event.
6105 // In order to tell whether a plugin gets the last mouse event and which it 6107 // In order to tell whether a plugin gets the last mouse event and which it
6106 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6108 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6107 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6109 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6108 // |pepper_last_mouse_event_target_|. 6110 // |pepper_last_mouse_event_target_|.
6109 pepper_last_mouse_event_target_ = nullptr; 6111 pepper_last_mouse_event_target_ = nullptr;
6110 #endif 6112 #endif
6111 } 6113 }
6112 6114
6113 } // namespace content 6115 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_view_impl.h » ('j') | content/renderer/render_widget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698