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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_manager.cc

Issue 853333002: Browser Plugin: Make aware of focus direction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 11 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
OLDNEW
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/browser_plugin/browser_plugin_manager.h" 5 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "content/common/browser_plugin/browser_plugin_constants.h" 7 #include "content/common/browser_plugin/browser_plugin_constants.h"
8 #include "content/common/browser_plugin/browser_plugin_messages.h" 8 #include "content/common/browser_plugin/browser_plugin_messages.h"
9 #include "content/common/frame_messages.h" 9 #include "content/common/frame_messages.h"
10 #include "content/public/renderer/browser_plugin_delegate.h" 10 #include "content/public/renderer/browser_plugin_delegate.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 IDMap<BrowserPlugin>::iterator iter(&instances_); 51 IDMap<BrowserPlugin>::iterator iter(&instances_);
52 while (!iter.IsAtEnd()) { 52 while (!iter.IsAtEnd()) {
53 iter.GetCurrentValue()->UpdateDeviceScaleFactor(); 53 iter.GetCurrentValue()->UpdateDeviceScaleFactor();
54 iter.Advance(); 54 iter.Advance();
55 } 55 }
56 } 56 }
57 57
58 void BrowserPluginManager::UpdateFocusState() { 58 void BrowserPluginManager::UpdateFocusState() {
59 IDMap<BrowserPlugin>::iterator iter(&instances_); 59 IDMap<BrowserPlugin>::iterator iter(&instances_);
60 while (!iter.IsAtEnd()) { 60 while (!iter.IsAtEnd()) {
61 iter.GetCurrentValue()->UpdateGuestFocusState(); 61 iter.GetCurrentValue()->UpdateGuestFocusState(blink::WebFocusTypeNone);
62 iter.Advance(); 62 iter.Advance();
63 } 63 }
64 } 64 }
65 65
66 void BrowserPluginManager::Attach(int browser_plugin_instance_id) { 66 void BrowserPluginManager::Attach(int browser_plugin_instance_id) {
67 BrowserPlugin* plugin = GetBrowserPlugin(browser_plugin_instance_id); 67 BrowserPlugin* plugin = GetBrowserPlugin(browser_plugin_instance_id);
68 if (plugin) 68 if (plugin)
69 plugin->Attach(); 69 plugin->Attach();
70 } 70 }
71 71
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 FrameHostMsg_CompositorFrameSwappedACK_Params params; 134 FrameHostMsg_CompositorFrameSwappedACK_Params params;
135 params.producing_host_id = get<1>(param).producing_host_id; 135 params.producing_host_id = get<1>(param).producing_host_id;
136 params.producing_route_id = get<1>(param).producing_route_id; 136 params.producing_route_id = get<1>(param).producing_route_id;
137 params.output_surface_id = get<1>(param).output_surface_id; 137 params.output_surface_id = get<1>(param).output_surface_id;
138 Send(new BrowserPluginHostMsg_CompositorFrameSwappedACK( 138 Send(new BrowserPluginHostMsg_CompositorFrameSwappedACK(
139 message.routing_id(), get<0>(param), params)); 139 message.routing_id(), get<0>(param), params));
140 } 140 }
141 141
142 } // namespace content 142 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.cc ('k') | content/renderer/npapi/webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698