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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder.cc

Issue 2101943004: content: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase/update Created 4 years, 5 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/browser/browser_plugin/browser_plugin_embedder.h" 5 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
6 6
7 #include "content/browser/browser_plugin/browser_plugin_guest.h" 7 #include "content/browser/browser_plugin/browser_plugin_guest.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/common/browser_plugin/browser_plugin_messages.h" 10 #include "content/common/browser_plugin/browser_plugin_messages.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // only un-setting if the caller is marked as the guest being dragged over. 43 // only un-setting if the caller is marked as the guest being dragged over.
44 if (guest_dragging_over_.get() == guest) { 44 if (guest_dragging_over_.get() == guest) {
45 guest_dragging_over_.reset(); 45 guest_dragging_over_.reset();
46 } 46 }
47 } 47 }
48 48
49 // static 49 // static
50 bool BrowserPluginEmbedder::NotifyScreenInfoChanged( 50 bool BrowserPluginEmbedder::NotifyScreenInfoChanged(
51 WebContents* guest_web_contents) { 51 WebContents* guest_web_contents) {
52 if (guest_web_contents->GetRenderViewHost()) { 52 if (guest_web_contents->GetRenderViewHost()) {
53 auto render_widget_host = RenderWidgetHostImpl::From( 53 auto* render_widget_host = RenderWidgetHostImpl::From(
54 guest_web_contents->GetRenderViewHost()->GetWidget()); 54 guest_web_contents->GetRenderViewHost()->GetWidget());
55 render_widget_host->NotifyScreenInfoChanged(); 55 render_widget_host->NotifyScreenInfoChanged();
56 } 56 }
57 57
58 // Returns false to iterate over all guests. 58 // Returns false to iterate over all guests.
59 return false; 59 return false;
60 } 60 }
61 61
62 void BrowserPluginEmbedder::ScreenInfoChanged() { 62 void BrowserPluginEmbedder::ScreenInfoChanged() {
63 GetBrowserPluginGuestManager()->ForEachGuest(web_contents(), base::Bind( 63 GetBrowserPluginGuestManager()->ForEachGuest(web_contents(), base::Bind(
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 ->GetBrowserPluginGuest() 263 ->GetBrowserPluginGuest()
264 ->HandleStopFindingForEmbedder(action)) { 264 ->HandleStopFindingForEmbedder(action)) {
265 // There can only ever currently be one browser plugin that handles find so 265 // There can only ever currently be one browser plugin that handles find so
266 // we can break the iteration at this point. 266 // we can break the iteration at this point.
267 return true; 267 return true;
268 } 268 }
269 return false; 269 return false;
270 } 270 }
271 271
272 } // namespace content 272 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/web_contents_observer_proxy.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698