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

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

Issue 10837112: Add WebContents* to some more WebContentsDelegate methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 4 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/renderer_host/render_widget_host_view_android.h" 9 #include "content/browser/renderer_host/render_widget_host_view_android.h"
10 #include "content/browser/renderer_host/render_view_host_factory.h" 10 #include "content/browser/renderer_host/render_view_host_factory.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 void WebContentsViewAndroid::GotFocus() { 192 void WebContentsViewAndroid::GotFocus() {
193 // This is only used in the views FocusManager stuff but it bleeds through 193 // This is only used in the views FocusManager stuff but it bleeds through
194 // all subclasses. http://crbug.com/21875 194 // all subclasses. http://crbug.com/21875
195 } 195 }
196 196
197 // This is called when we the renderer asks us to take focus back (i.e., it has 197 // This is called when we the renderer asks us to take focus back (i.e., it has
198 // iterated past the last focusable element on the page). 198 // iterated past the last focusable element on the page).
199 void WebContentsViewAndroid::TakeFocus(bool reverse) { 199 void WebContentsViewAndroid::TakeFocus(bool reverse) {
200 if (web_contents_->GetDelegate() && 200 if (web_contents_->GetDelegate() &&
201 web_contents_->GetDelegate()->TakeFocus(reverse)) 201 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse))
202 return; 202 return;
203 web_contents_->GetRenderWidgetHostView()->Focus(); 203 web_contents_->GetRenderWidgetHostView()->Focus();
204 } 204 }
205 205
206 } // namespace content 206 } // 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