OLD | NEW |
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 Loading... |
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 |
OLD | NEW |