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

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

Issue 18281002: Move WebDropData to content::DropData and split off conversion function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error. Created 7 years, 5 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 118
119 void WebContentsViewAndroid::StoreFocus() { 119 void WebContentsViewAndroid::StoreFocus() {
120 NOTIMPLEMENTED(); 120 NOTIMPLEMENTED();
121 } 121 }
122 122
123 void WebContentsViewAndroid::RestoreFocus() { 123 void WebContentsViewAndroid::RestoreFocus() {
124 NOTIMPLEMENTED(); 124 NOTIMPLEMENTED();
125 } 125 }
126 126
127 WebDropData* WebContentsViewAndroid::GetDropData() const { 127 DropData* WebContentsViewAndroid::GetDropData() const {
128 NOTIMPLEMENTED(); 128 NOTIMPLEMENTED();
129 return NULL; 129 return NULL;
130 } 130 }
131 131
132 gfx::Rect WebContentsViewAndroid::GetViewBounds() const { 132 gfx::Rect WebContentsViewAndroid::GetViewBounds() const {
133 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); 133 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView();
134 if (rwhv) 134 if (rwhv)
135 return rwhv->GetViewBounds(); 135 return rwhv->GetViewBounds();
136 else 136 else
137 return gfx::Rect(); 137 return gfx::Rect();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 const std::vector<WebMenuItem>& items, 191 const std::vector<WebMenuItem>& items,
192 bool right_aligned, 192 bool right_aligned,
193 bool allow_multiple_selection) { 193 bool allow_multiple_selection) {
194 if (content_view_core_) { 194 if (content_view_core_) {
195 content_view_core_->ShowSelectPopupMenu( 195 content_view_core_->ShowSelectPopupMenu(
196 items, selected_item, allow_multiple_selection); 196 items, selected_item, allow_multiple_selection);
197 } 197 }
198 } 198 }
199 199
200 void WebContentsViewAndroid::StartDragging( 200 void WebContentsViewAndroid::StartDragging(
201 const WebDropData& drop_data, 201 const DropData& drop_data,
202 WebKit::WebDragOperationsMask allowed_ops, 202 WebKit::WebDragOperationsMask allowed_ops,
203 const gfx::ImageSkia& image, 203 const gfx::ImageSkia& image,
204 const gfx::Vector2d& image_offset, 204 const gfx::Vector2d& image_offset,
205 const DragEventSourceInfo& event_info) { 205 const DragEventSourceInfo& event_info) {
206 NOTIMPLEMENTED(); 206 NOTIMPLEMENTED();
207 } 207 }
208 208
209 void WebContentsViewAndroid::UpdateDragCursor(WebKit::WebDragOperation op) { 209 void WebContentsViewAndroid::UpdateDragCursor(WebKit::WebDragOperation op) {
210 NOTIMPLEMENTED(); 210 NOTIMPLEMENTED();
211 } 211 }
212 212
213 void WebContentsViewAndroid::GotFocus() { 213 void WebContentsViewAndroid::GotFocus() {
214 // This is only used in the views FocusManager stuff but it bleeds through 214 // This is only used in the views FocusManager stuff but it bleeds through
215 // all subclasses. http://crbug.com/21875 215 // all subclasses. http://crbug.com/21875
216 } 216 }
217 217
218 // This is called when we the renderer asks us to take focus back (i.e., it has 218 // This is called when we the renderer asks us to take focus back (i.e., it has
219 // iterated past the last focusable element on the page). 219 // iterated past the last focusable element on the page).
220 void WebContentsViewAndroid::TakeFocus(bool reverse) { 220 void WebContentsViewAndroid::TakeFocus(bool reverse) {
221 if (web_contents_->GetDelegate() && 221 if (web_contents_->GetDelegate() &&
222 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse)) 222 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse))
223 return; 223 return;
224 web_contents_->GetRenderWidgetHostView()->Focus(); 224 web_contents_->GetRenderWidgetHostView()->Focus();
225 } 225 }
226 226
227 } // namespace content 227 } // 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