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

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

Issue 10377119: Plumb event flags (shift/alt/ctrl modifiers) for drag/drop events to WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error Created 8 years, 7 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
« no previous file with comments | « content/common/drag_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // Notifies the renderer that we're done with the drag and drop operation. 116 // Notifies the renderer that we're done with the drag and drop operation.
117 // This allows the renderer to reset some state. 117 // This allows the renderer to reset some state.
118 virtual void DragSourceSystemDragEnded() = 0; 118 virtual void DragSourceSystemDragEnded() = 0;
119 119
120 // D&d drop target messages that get sent to WebKit. 120 // D&d drop target messages that get sent to WebKit.
121 virtual void DragTargetDragEnter( 121 virtual void DragTargetDragEnter(
122 const WebDropData& drop_data, 122 const WebDropData& drop_data,
123 const gfx::Point& client_pt, 123 const gfx::Point& client_pt,
124 const gfx::Point& screen_pt, 124 const gfx::Point& screen_pt,
125 WebKit::WebDragOperationsMask operations_allowed) = 0; 125 WebKit::WebDragOperationsMask operations_allowed,
126 int key_modifiers) = 0;
126 virtual void DragTargetDragOver( 127 virtual void DragTargetDragOver(
127 const gfx::Point& client_pt, 128 const gfx::Point& client_pt,
128 const gfx::Point& screen_pt, 129 const gfx::Point& screen_pt,
129 WebKit::WebDragOperationsMask operations_allowed) = 0; 130 WebKit::WebDragOperationsMask operations_allowed,
131 int key_modifiers) = 0;
130 virtual void DragTargetDragLeave() = 0; 132 virtual void DragTargetDragLeave() = 0;
131 virtual void DragTargetDrop(const gfx::Point& client_pt, 133 virtual void DragTargetDrop(const gfx::Point& client_pt,
132 const gfx::Point& screen_pt) = 0; 134 const gfx::Point& screen_pt,
135 int key_modifiers) = 0;
133 136
134 // Instructs the RenderView to automatically resize and send back updates 137 // Instructs the RenderView to automatically resize and send back updates
135 // for the new size. 138 // for the new size.
136 virtual void EnableAutoResize(const gfx::Size& min_size, 139 virtual void EnableAutoResize(const gfx::Size& min_size,
137 const gfx::Size& max_size) = 0; 140 const gfx::Size& max_size) = 0;
138 141
139 // Turns off auto-resize and gives a new size that the view should be. 142 // Turns off auto-resize and gives a new size that the view should be.
140 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; 143 virtual void DisableAutoResize(const gfx::Size& new_size) = 0;
141 144
142 // Instructs the RenderView to send back updates to the preferred size. 145 // Instructs the RenderView to send back updates to the preferred size.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 virtual void ToggleSpeechInput() = 0; 252 virtual void ToggleSpeechInput() = 0;
250 253
251 // Passes a list of Webkit preferences to the renderer. 254 // Passes a list of Webkit preferences to the renderer.
252 virtual void UpdateWebkitPreferences( 255 virtual void UpdateWebkitPreferences(
253 const webkit_glue::WebPreferences& prefs) = 0; 256 const webkit_glue::WebPreferences& prefs) = 0;
254 }; 257 };
255 258
256 } // namespace content 259 } // namespace content
257 260
258 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 261 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/common/drag_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698