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

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

Issue 10915304: We do not pass enums by conts references. This CL fixes style errors introduced (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 gfx::Rect WebContentsViewAndroid::GetViewBounds() const { 154 gfx::Rect WebContentsViewAndroid::GetViewBounds() const {
155 if (content_view_core_) 155 if (content_view_core_)
156 return content_view_core_->GetBounds(); 156 return content_view_core_->GetBounds();
157 else 157 else
158 return gfx::Rect(); 158 return gfx::Rect();
159 } 159 }
160 160
161 void WebContentsViewAndroid::ShowContextMenu( 161 void WebContentsViewAndroid::ShowContextMenu(
162 const ContextMenuParams& params, 162 const ContextMenuParams& params,
163 const content::ContextMenuSourceType& type) { 163 content::ContextMenuSourceType type) {
164 if (delegate_.get()) 164 if (delegate_.get())
165 delegate_->ShowContextMenu(params, type); 165 delegate_->ShowContextMenu(params, type);
166 } 166 }
167 167
168 void WebContentsViewAndroid::ShowPopupMenu( 168 void WebContentsViewAndroid::ShowPopupMenu(
169 const gfx::Rect& bounds, 169 const gfx::Rect& bounds,
170 int item_height, 170 int item_height,
171 double item_font_size, 171 double item_font_size,
172 int selected_item, 172 int selected_item,
173 const std::vector<WebMenuItem>& items, 173 const std::vector<WebMenuItem>& items,
(...skipping 25 matching lines...) Expand all
199 // This is called when we the renderer asks us to take focus back (i.e., it has 199 // This is called when we the renderer asks us to take focus back (i.e., it has
200 // iterated past the last focusable element on the page). 200 // iterated past the last focusable element on the page).
201 void WebContentsViewAndroid::TakeFocus(bool reverse) { 201 void WebContentsViewAndroid::TakeFocus(bool reverse) {
202 if (web_contents_->GetDelegate() && 202 if (web_contents_->GetDelegate() &&
203 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse)) 203 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse))
204 return; 204 return;
205 web_contents_->GetRenderWidgetHostView()->Focus(); 205 web_contents_->GetRenderWidgetHostView()->Focus();
206 } 206 }
207 207
208 } // namespace content 208 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_android.h ('k') | content/browser/web_contents/web_contents_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698