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

Side by Side Diff: content/public/browser/render_view_host.h

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 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/render_widget_host.h" 10 #include "content/public/browser/render_widget_host.h"
11 #include "content/public/common/page_zoom.h" 11 #include "content/public/common/page_zoom.h"
12 #include "content/public/common/stop_find_action.h" 12 #include "content/public/common/stop_find_action.h"
13 #include "third_party/WebKit/public/web/WebDragOperation.h" 13 #include "third_party/WebKit/public/web/WebDragOperation.h"
14 14
15 class GURL; 15 class GURL;
16 struct WebDropData;
17 struct WebPreferences; 16 struct WebPreferences;
18 17
19 namespace gfx { 18 namespace gfx {
20 class Point; 19 class Point;
21 } 20 }
22 21
23 namespace base { 22 namespace base {
24 class FilePath; 23 class FilePath;
25 class Value; 24 class Value;
26 } 25 }
27 26
28 namespace ui { 27 namespace ui {
29 struct SelectedFileInfo; 28 struct SelectedFileInfo;
30 } 29 }
31 30
32 namespace WebKit { 31 namespace WebKit {
33 struct WebFindOptions; 32 struct WebFindOptions;
34 struct WebMediaPlayerAction; 33 struct WebMediaPlayerAction;
35 struct WebPluginAction; 34 struct WebPluginAction;
36 } 35 }
37 36
38 namespace content { 37 namespace content {
39 38
40 class ChildProcessSecurityPolicy; 39 class ChildProcessSecurityPolicy;
41 class RenderProcessHost; 40 class RenderProcessHost;
42 class RenderViewHostDelegate; 41 class RenderViewHostDelegate;
43 class SessionStorageNamespace; 42 class SessionStorageNamespace;
44 class SiteInstance; 43 class SiteInstance;
45 struct CustomContextMenuContext; 44 struct CustomContextMenuContext;
45 struct DropData;
46 46
47 // A RenderViewHost is responsible for creating and talking to a RenderView 47 // A RenderViewHost is responsible for creating and talking to a RenderView
48 // object in a child process. It exposes a high level API to users, for things 48 // object in a child process. It exposes a high level API to users, for things
49 // like loading pages, adjusting the display and other browser functionality, 49 // like loading pages, adjusting the display and other browser functionality,
50 // which it translates into IPC messages sent over the IPC channel with the 50 // which it translates into IPC messages sent over the IPC channel with the
51 // RenderView. It responds to all IPC messages sent by that RenderView and 51 // RenderView. It responds to all IPC messages sent by that RenderView and
52 // cracks them, calling a delegate object back with higher level types where 52 // cracks them, calling a delegate object back with higher level types where
53 // possible. 53 // possible.
54 // 54 //
55 // The intent of this interface is to provide a view-agnostic communication 55 // The intent of this interface is to provide a view-agnostic communication
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // droppable items positioned over the renderer's view. 129 // droppable items positioned over the renderer's view.
130 virtual void DragSourceMovedTo( 130 virtual void DragSourceMovedTo(
131 int client_x, int client_y, int screen_x, int screen_y) = 0; 131 int client_x, int client_y, int screen_x, int screen_y) = 0;
132 132
133 // Notifies the renderer that we're done with the drag and drop operation. 133 // Notifies the renderer that we're done with the drag and drop operation.
134 // This allows the renderer to reset some state. 134 // This allows the renderer to reset some state.
135 virtual void DragSourceSystemDragEnded() = 0; 135 virtual void DragSourceSystemDragEnded() = 0;
136 136
137 // D&d drop target messages that get sent to WebKit. 137 // D&d drop target messages that get sent to WebKit.
138 virtual void DragTargetDragEnter( 138 virtual void DragTargetDragEnter(
139 const WebDropData& drop_data, 139 const DropData& drop_data,
140 const gfx::Point& client_pt, 140 const gfx::Point& client_pt,
141 const gfx::Point& screen_pt, 141 const gfx::Point& screen_pt,
142 WebKit::WebDragOperationsMask operations_allowed, 142 WebKit::WebDragOperationsMask operations_allowed,
143 int key_modifiers) = 0; 143 int key_modifiers) = 0;
144 virtual void DragTargetDragOver( 144 virtual void DragTargetDragOver(
145 const gfx::Point& client_pt, 145 const gfx::Point& client_pt,
146 const gfx::Point& screen_pt, 146 const gfx::Point& screen_pt,
147 WebKit::WebDragOperationsMask operations_allowed, 147 WebKit::WebDragOperationsMask operations_allowed,
148 int key_modifiers) = 0; 148 int key_modifiers) = 0;
149 virtual void DragTargetDragLeave() = 0; 149 virtual void DragTargetDragLeave() = 0;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 private: 290 private:
291 // This interface should only be implemented inside content. 291 // This interface should only be implemented inside content.
292 friend class RenderViewHostImpl; 292 friend class RenderViewHostImpl;
293 RenderViewHost() {} 293 RenderViewHost() {}
294 }; 294 };
295 295
296 } // namespace content 296 } // namespace content
297 297
298 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 298 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/port/browser/render_view_host_delegate_view.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698