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

Unified Diff: content/common/drag_messages.h

Issue 6705012: Move the rest of the content browser->renderer messages to content. Also move drag related messa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/drag_messages.h
===================================================================
--- content/common/drag_messages.h (revision 0)
+++ content/common/drag_messages.h (revision 0)
@@ -0,0 +1,76 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// IPC messages for drag and drop.
+// Multiply-included message file, hence no include guard.
+
+#include "content/common/common_param_traits.h"
+#include "ipc/ipc_message_macros.h"
+#include "third_party/skia/include/core/SkBitmap.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
+#include "webkit/glue/webdropdata.h"
+
+#define IPC_MESSAGE_START DragMsgStart
+
+IPC_ENUM_TRAITS(WebKit::WebDragOperation)
+
+IPC_STRUCT_TRAITS_BEGIN(WebDropData)
+ IPC_STRUCT_TRAITS_MEMBER(url)
+ IPC_STRUCT_TRAITS_MEMBER(url_title)
+ IPC_STRUCT_TRAITS_MEMBER(download_metadata)
+ IPC_STRUCT_TRAITS_MEMBER(file_extension)
+ IPC_STRUCT_TRAITS_MEMBER(filenames)
+ IPC_STRUCT_TRAITS_MEMBER(plain_text)
+ IPC_STRUCT_TRAITS_MEMBER(text_html)
+ IPC_STRUCT_TRAITS_MEMBER(html_base_url)
+ IPC_STRUCT_TRAITS_MEMBER(file_description_filename)
+ IPC_STRUCT_TRAITS_MEMBER(file_contents)
+IPC_STRUCT_TRAITS_END()
+
+// Messages sent from the browser to the renderer.
+
+IPC_MESSAGE_ROUTED4(DragMsg_TargetDragEnter,
+ WebDropData /* drop_data */,
+ gfx::Point /* client_pt */,
+ gfx::Point /* screen_pt */,
+ WebKit::WebDragOperationsMask /* ops_allowed */)
+
+IPC_MESSAGE_ROUTED3(DragMsg_TargetDragOver,
+ gfx::Point /* client_pt */,
+ gfx::Point /* screen_pt */,
+ WebKit::WebDragOperationsMask /* ops_allowed */)
+
+IPC_MESSAGE_ROUTED0(DragMsg_TargetDragLeave)
+
+IPC_MESSAGE_ROUTED2(DragMsg_TargetDrop,
+ gfx::Point /* client_pt */,
+ gfx::Point /* screen_pt */)
+
+// Notifies the renderer of updates in mouse position of an in-progress
+// drag. if |ended| is true, then the user has ended the drag operation.
+IPC_MESSAGE_ROUTED4(DragMsg_SourceEndedOrMoved,
+ gfx::Point /* client_pt */,
+ gfx::Point /* screen_pt */,
+ bool /* ended */,
+ WebKit::WebDragOperation /* drag_operation */)
+
+// Notifies the renderer that the system DoDragDrop call has ended.
+IPC_MESSAGE_ROUTED0(DragMsg_SourceSystemDragEnded)
+
+// Messages sent from the renderer to the browser.
+
+// Used to tell the parent the user started dragging in the content area. The
+// WebDropData struct contains contextual information about the pieces of the
+// page the user dragged. The parent uses this notification to initiate a
+// drag session at the OS level.
+IPC_MESSAGE_ROUTED4(DragHostMsg_StartDragging,
+ WebDropData /* drop_data */,
+ WebKit::WebDragOperationsMask /* ops_allowed */,
+ SkBitmap /* image */,
+ gfx::Point /* image_offset */)
+
+// The page wants to update the mouse cursor during a drag & drop operation.
+// |is_drop_target| is true if the mouse is over a valid drop target.
+IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor,
+ WebKit::WebDragOperation /* drag_operation */)
Property changes on: content\common\drag_messages.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698