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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 668125: Basic DragImage implementation.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 formfield_history_delegate->FormFieldValuesSubmitted(form); 1365 formfield_history_delegate->FormFieldValuesSubmitted(form);
1366 1366
1367 RenderViewHostDelegate::AutoFill* autofill_delegate = 1367 RenderViewHostDelegate::AutoFill* autofill_delegate =
1368 delegate_->GetAutoFillDelegate(); 1368 delegate_->GetAutoFillDelegate();
1369 if (autofill_delegate) 1369 if (autofill_delegate)
1370 autofill_delegate->FormFieldValuesSubmitted(form); 1370 autofill_delegate->FormFieldValuesSubmitted(form);
1371 } 1371 }
1372 1372
1373 void RenderViewHost::OnMsgStartDragging( 1373 void RenderViewHost::OnMsgStartDragging(
1374 const WebDropData& drop_data, 1374 const WebDropData& drop_data,
1375 WebDragOperationsMask drag_operations_mask) { 1375 WebDragOperationsMask drag_operations_mask,
1376 const SkBitmap& image,
1377 const gfx::Point& image_offset) {
1376 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1378 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1377 if (view) 1379 if (view)
1378 view->StartDragging(drop_data, drag_operations_mask); 1380 view->StartDragging(drop_data, drag_operations_mask, image, image_offset);
1379 } 1381 }
1380 1382
1381 void RenderViewHost::OnUpdateDragCursor(WebDragOperation current_op) { 1383 void RenderViewHost::OnUpdateDragCursor(WebDragOperation current_op) {
1382 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1384 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1383 if (view) 1385 if (view)
1384 view->UpdateDragCursor(current_op); 1386 view->UpdateDragCursor(current_op);
1385 } 1387 }
1386 1388
1387 void RenderViewHost::OnTakeFocus(bool reverse) { 1389 void RenderViewHost::OnTakeFocus(bool reverse) {
1388 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1390 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 integration_delegate->OnPageTranslated(page_id, 1854 integration_delegate->OnPageTranslated(page_id,
1853 original_lang, translated_lang); 1855 original_lang, translated_lang);
1854 } 1856 }
1855 1857
1856 void RenderViewHost::OnContentBlocked(ContentSettingsType type) { 1858 void RenderViewHost::OnContentBlocked(ContentSettingsType type) {
1857 RenderViewHostDelegate::Resource* resource_delegate = 1859 RenderViewHostDelegate::Resource* resource_delegate =
1858 delegate_->GetResourceDelegate(); 1860 delegate_->GetResourceDelegate();
1859 if (resource_delegate) 1861 if (resource_delegate)
1860 resource_delegate->OnContentBlocked(type); 1862 resource_delegate->OnContentBlocked(type);
1861 } 1863 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698