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

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

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 1 month 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 if (content_view_core_) { 176 if (content_view_core_) {
177 content_view_core_->ShowSelectPopupMenu( 177 content_view_core_->ShowSelectPopupMenu(
178 items, selected_item, allow_multiple_selection); 178 items, selected_item, allow_multiple_selection);
179 } 179 }
180 } 180 }
181 181
182 void WebContentsViewAndroid::StartDragging( 182 void WebContentsViewAndroid::StartDragging(
183 const WebDropData& drop_data, 183 const WebDropData& drop_data,
184 WebKit::WebDragOperationsMask allowed_ops, 184 WebKit::WebDragOperationsMask allowed_ops,
185 const gfx::ImageSkia& image, 185 const gfx::ImageSkia& image,
186 const gfx::Point& image_offset) { 186 const gfx::Vector2d& image_offset) {
187 NOTIMPLEMENTED(); 187 NOTIMPLEMENTED();
188 } 188 }
189 189
190 void WebContentsViewAndroid::UpdateDragCursor(WebKit::WebDragOperation op) { 190 void WebContentsViewAndroid::UpdateDragCursor(WebKit::WebDragOperation op) {
191 NOTIMPLEMENTED(); 191 NOTIMPLEMENTED();
192 } 192 }
193 193
194 void WebContentsViewAndroid::GotFocus() { 194 void WebContentsViewAndroid::GotFocus() {
195 // This is only used in the views FocusManager stuff but it bleeds through 195 // This is only used in the views FocusManager stuff but it bleeds through
196 // all subclasses. http://crbug.com/21875 196 // all subclasses. http://crbug.com/21875
197 } 197 }
198 198
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

Powered by Google App Engine
This is Rietveld 408576698