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

Side by Side Diff: content/browser/web_contents/web_contents_view_android.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 years, 8 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 | Annotate | Revision Log
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/web_contents/web_contents_view_android.h" 5 #include "content/browser/web_contents/web_contents_view_android.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/android/content_view_core_impl.h" 8 #include "content/browser/android/content_view_core_impl.h"
9 #include "content/browser/android/media_player_manager_android.h" 9 #include "content/browser/android/media_player_manager_android.h"
10 #include "content/browser/renderer_host/render_widget_host_view_android.h" 10 #include "content/browser/renderer_host/render_widget_host_view_android.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 void WebContentsViewAndroid::RenderViewSwappedIn(RenderViewHost* host) { 171 void WebContentsViewAndroid::RenderViewSwappedIn(RenderViewHost* host) {
172 } 172 }
173 173
174 void WebContentsViewAndroid::SetOverscrollControllerEnabled(bool enabled) { 174 void WebContentsViewAndroid::SetOverscrollControllerEnabled(bool enabled) {
175 } 175 }
176 176
177 void WebContentsViewAndroid::ShowContextMenu( 177 void WebContentsViewAndroid::ShowContextMenu(
178 const ContextMenuParams& params, 178 const ContextMenuParams& params,
179 ContextMenuSourceType type) { 179 ContextMenuSourceType type) {
180 if (delegate_.get()) 180 if (delegate_)
181 delegate_->ShowContextMenu(params, type); 181 delegate_->ShowContextMenu(params, type);
182 } 182 }
183 183
184 void WebContentsViewAndroid::ShowPopupMenu( 184 void WebContentsViewAndroid::ShowPopupMenu(
185 const gfx::Rect& bounds, 185 const gfx::Rect& bounds,
186 int item_height, 186 int item_height,
187 double item_font_size, 187 double item_font_size,
188 int selected_item, 188 int selected_item,
189 const std::vector<WebMenuItem>& items, 189 const std::vector<WebMenuItem>& items,
190 bool right_aligned, 190 bool right_aligned,
(...skipping 25 matching lines...) Expand all
216 // This is called when we the renderer asks us to take focus back (i.e., it has 216 // This is called when we the renderer asks us to take focus back (i.e., it has
217 // iterated past the last focusable element on the page). 217 // iterated past the last focusable element on the page).
218 void WebContentsViewAndroid::TakeFocus(bool reverse) { 218 void WebContentsViewAndroid::TakeFocus(bool reverse) {
219 if (web_contents_->GetDelegate() && 219 if (web_contents_->GetDelegate() &&
220 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse)) 220 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse))
221 return; 221 return;
222 web_contents_->GetRenderWidgetHostView()->Focus(); 222 web_contents_->GetRenderWidgetHostView()->Focus();
223 } 223 }
224 224
225 } // namespace content 225 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698