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/frame_host/interstitial_page_impl.h" | 9 #include "content/browser/frame_host/interstitial_page_impl.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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 void WebContentsViewAndroid::StartDragging( | 191 void WebContentsViewAndroid::StartDragging( |
192 const DropData& drop_data, | 192 const DropData& drop_data, |
193 blink::WebDragOperationsMask allowed_ops, | 193 blink::WebDragOperationsMask allowed_ops, |
194 const gfx::ImageSkia& image, | 194 const gfx::ImageSkia& image, |
195 const gfx::Vector2d& image_offset, | 195 const gfx::Vector2d& image_offset, |
196 const DragEventSourceInfo& event_info) { | 196 const DragEventSourceInfo& event_info) { |
197 NOTIMPLEMENTED(); | 197 NOTIMPLEMENTED(); |
198 } | 198 } |
199 | 199 |
200 void WebContentsViewAndroid::UpdateDragCursor(blink::WebDragOperation op) { | 200 void WebContentsViewAndroid::UpdateDragCursor(blink::WebDragOperation op) { |
201 NOTIMPLEMENTED(); | 201 // Intentional no-op because Android does not have cursor. |
202 } | 202 } |
203 | 203 |
204 void WebContentsViewAndroid::OnDragEntered( | 204 void WebContentsViewAndroid::OnDragEntered( |
205 const std::vector<DropData::Metadata>& metadata, | 205 const std::vector<DropData::Metadata>& metadata, |
206 const gfx::Point& location, | 206 const gfx::Point& location, |
207 const gfx::Point& screen_location) { | 207 const gfx::Point& screen_location) { |
208 web_contents_->GetRenderViewHost()->DragTargetDragEnterWithMetaData( | 208 web_contents_->GetRenderViewHost()->DragTargetDragEnterWithMetaData( |
209 metadata, location, screen_location, blink::WebDragOperationCopy, 0); | 209 metadata, location, screen_location, blink::WebDragOperationCopy, 0); |
210 } | 210 } |
211 | 211 |
(...skipping 23 matching lines...) Expand all Loading... |
235 // This is called when we the renderer asks us to take focus back (i.e., it has | 235 // This is called when we the renderer asks us to take focus back (i.e., it has |
236 // iterated past the last focusable element on the page). | 236 // iterated past the last focusable element on the page). |
237 void WebContentsViewAndroid::TakeFocus(bool reverse) { | 237 void WebContentsViewAndroid::TakeFocus(bool reverse) { |
238 if (web_contents_->GetDelegate() && | 238 if (web_contents_->GetDelegate() && |
239 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse)) | 239 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse)) |
240 return; | 240 return; |
241 web_contents_->GetRenderWidgetHostView()->Focus(); | 241 web_contents_->GetRenderWidgetHostView()->Focus(); |
242 } | 242 } |
243 | 243 |
244 } // namespace content | 244 } // namespace content |
OLD | NEW |