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

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

Issue 174364: Plumb the DragOperation through all the layers between the platform DnD code ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "chrome/browser/extensions/extension_function_dispatcher.h" 12 #include "chrome/browser/extensions/extension_function_dispatcher.h"
13 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 13 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
14 #include "chrome/browser/renderer_host/render_widget_host.h" 14 #include "chrome/browser/renderer_host/render_widget_host.h"
15 #include "chrome/common/modal_dialog_event.h" 15 #include "chrome/common/modal_dialog_event.h"
16 #include "chrome/common/notification_registrar.h" 16 #include "chrome/common/notification_registrar.h"
17 #include "chrome/common/page_zoom.h" 17 #include "chrome/common/page_zoom.h"
18 #include "webkit/api/public/WebConsoleMessage.h" 18 #include "webkit/api/public/WebConsoleMessage.h"
19 #include "webkit/api/public/WebDragOperation.h"
19 #include "webkit/api/public/WebTextDirection.h" 20 #include "webkit/api/public/WebTextDirection.h"
20 #include "webkit/glue/autofill_form.h" 21 #include "webkit/glue/autofill_form.h"
21 #include "webkit/glue/password_form_dom_manager.h" 22 #include "webkit/glue/password_form_dom_manager.h"
22 #include "webkit/glue/window_open_disposition.h" 23 #include "webkit/glue/window_open_disposition.h"
23 24
24 class RenderViewHostDelegate; 25 class RenderViewHostDelegate;
25 class SiteInstance; 26 class SiteInstance;
26 class SkBitmap; 27 class SkBitmap;
27 class ViewMsg_Navigate; 28 class ViewMsg_Navigate;
28 struct ContextMenuParams; 29 struct ContextMenuParams;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 void FillForm(const FormData& form_data); 232 void FillForm(const FormData& form_data);
232 233
233 // Fill out a password form and trigger DOM autocomplete in the case 234 // Fill out a password form and trigger DOM autocomplete in the case
234 // of multiple matching logins. 235 // of multiple matching logins.
235 void FillPasswordForm( 236 void FillPasswordForm(
236 const webkit_glue::PasswordFormDomManager::FillData& form_data); 237 const webkit_glue::PasswordFormDomManager::FillData& form_data);
237 238
238 // D&d drop target messages that get sent to WebKit. 239 // D&d drop target messages that get sent to WebKit.
239 void DragTargetDragEnter(const WebDropData& drop_data, 240 void DragTargetDragEnter(const WebDropData& drop_data,
240 const gfx::Point& client_pt, 241 const gfx::Point& client_pt,
241 const gfx::Point& screen_pt); 242 const gfx::Point& screen_pt,
243 WebKit::WebDragOperationsMask operations_allowed);
242 void DragTargetDragOver(const gfx::Point& client_pt, 244 void DragTargetDragOver(const gfx::Point& client_pt,
243 const gfx::Point& screen_pt); 245 const gfx::Point& screen_pt,
246 WebKit::WebDragOperationsMask operations_allowed);
244 void DragTargetDragLeave(); 247 void DragTargetDragLeave();
245 void DragTargetDrop(const gfx::Point& client_pt, 248 void DragTargetDrop(const gfx::Point& client_pt,
246 const gfx::Point& screen_pt); 249 const gfx::Point& screen_pt);
247 250
248 // Tell the RenderView to reserve a range of page ids of the given size. 251 // Tell the RenderView to reserve a range of page ids of the given size.
249 void ReservePageIDRange(int size); 252 void ReservePageIDRange(int size);
250 253
251 // Runs some javascript within the context of a frame in the page. 254 // Runs some javascript within the context of a frame in the page.
252 void ExecuteJavascriptInWebFrame(const std::wstring& frame_xpath, 255 void ExecuteJavascriptInWebFrame(const std::wstring& frame_xpath,
253 const std::wstring& jscript); 256 const std::wstring& jscript);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // Notifies the RenderView that the modal html dialog has been closed. 302 // Notifies the RenderView that the modal html dialog has been closed.
300 void ModalHTMLDialogClosed(IPC::Message* reply_msg, 303 void ModalHTMLDialogClosed(IPC::Message* reply_msg,
301 const std::string& json_retval); 304 const std::string& json_retval);
302 305
303 // Send an action to the media player element located at |x|, |y|. 306 // Send an action to the media player element located at |x|, |y|.
304 void MediaPlayerActionAt(int x, int y, const MediaPlayerAction& action); 307 void MediaPlayerActionAt(int x, int y, const MediaPlayerAction& action);
305 308
306 // Copies the image at the specified point. 309 // Copies the image at the specified point.
307 void CopyImageAt(int x, int y); 310 void CopyImageAt(int x, int y);
308 311
309 // Notifies the renderer that a drag and drop was cancelled. This is 312 // Notifies the renderer that a a drag operation that it started has ended,
310 // necessary because the render may be the one that started the drag. 313 // either in a drop or by being cancelled.
311 void DragSourceCancelledAt(
312 int client_x, int client_y, int screen_x, int screen_y);
313
314 // Notifies the renderer that a drop occurred. This is necessary because the
315 // render may be the one that started the drag.
316 void DragSourceEndedAt( 314 void DragSourceEndedAt(
317 int client_x, int client_y, int screen_x, int screen_y); 315 int client_x, int client_y, int screen_x, int screen_y,
316 WebKit::WebDragOperation operation);
318 317
319 // Notifies the renderer that a drag and drop operation is in progress, with 318 // Notifies the renderer that a drag and drop operation is in progress, with
320 // droppable items positioned over the renderer's view. 319 // droppable items positioned over the renderer's view.
321 void DragSourceMovedTo( 320 void DragSourceMovedTo(
322 int client_x, int client_y, int screen_x, int screen_y); 321 int client_x, int client_y, int screen_x, int screen_y);
323 322
324 // Notifies the renderer that we're done with the drag and drop operation. 323 // Notifies the renderer that we're done with the drag and drop operation.
325 // This allows the renderer to reset some state. 324 // This allows the renderer to reset some state.
326 void DragSourceSystemDragEnded(); 325 void DragSourceSystemDragEnded();
327 326
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 IPC::Message* reply_msg); 514 IPC::Message* reply_msg);
516 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, 515 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url,
517 const std::wstring& message, 516 const std::wstring& message,
518 IPC::Message* reply_msg); 517 IPC::Message* reply_msg);
519 void OnMsgShowModalHTMLDialog(const GURL& url, int width, int height, 518 void OnMsgShowModalHTMLDialog(const GURL& url, int width, int height,
520 const std::string& json_arguments, 519 const std::string& json_arguments,
521 IPC::Message* reply_msg); 520 IPC::Message* reply_msg);
522 void OnMsgPasswordFormsSeen( 521 void OnMsgPasswordFormsSeen(
523 const std::vector<webkit_glue::PasswordForm>& forms); 522 const std::vector<webkit_glue::PasswordForm>& forms);
524 void OnMsgAutofillFormSubmitted(const webkit_glue::AutofillForm& forms); 523 void OnMsgAutofillFormSubmitted(const webkit_glue::AutofillForm& forms);
525 void OnMsgStartDragging(const WebDropData& drop_data); 524 void OnMsgStartDragging(const WebDropData& drop_data,
526 void OnUpdateDragCursor(bool is_drop_target); 525 WebKit::WebDragOperationsMask operations_allowed);
526 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation);
527 void OnTakeFocus(bool reverse); 527 void OnTakeFocus(bool reverse);
528 void OnMsgPageHasOSDD(int32 page_id, const GURL& doc_url, bool autodetected); 528 void OnMsgPageHasOSDD(int32 page_id, const GURL& doc_url, bool autodetected);
529 void OnDidGetPrintedPagesCount(int cookie, int number_pages); 529 void OnDidGetPrintedPagesCount(int cookie, int number_pages);
530 void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params); 530 void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params);
531 void OnAddMessageToConsole(const std::wstring& message, 531 void OnAddMessageToConsole(const std::wstring& message,
532 int32 line_no, 532 int32 line_no,
533 const std::wstring& source_id); 533 const std::wstring& source_id);
534 534
535 void OnUpdateInspectorSettings(const std::wstring& raw_settings); 535 void OnUpdateInspectorSettings(const std::wstring& raw_settings);
536 void OnForwardToDevToolsAgent(const IPC::Message& message); 536 void OnForwardToDevToolsAgent(const IPC::Message& message);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 // While in this mode, mouse click is converted into InspectElement 648 // While in this mode, mouse click is converted into InspectElement
649 // command. 649 // command.
650 bool in_inspect_element_mode_; 650 bool in_inspect_element_mode_;
651 651
652 NotificationRegistrar registrar_; 652 NotificationRegistrar registrar_;
653 653
654 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 654 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
655 }; 655 };
656 656
657 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 657 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tab_contents_drag_source.cc ('k') | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698