OLD | NEW |
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 // Notifies the renderer that we're done with the drag and drop operation. | 113 // Notifies the renderer that we're done with the drag and drop operation. |
114 // This allows the renderer to reset some state. | 114 // This allows the renderer to reset some state. |
115 virtual void DragSourceSystemDragEnded() = 0; | 115 virtual void DragSourceSystemDragEnded() = 0; |
116 | 116 |
117 // D&d drop target messages that get sent to WebKit. | 117 // D&d drop target messages that get sent to WebKit. |
118 virtual void DragTargetDragEnter( | 118 virtual void DragTargetDragEnter( |
119 const WebDropData& drop_data, | 119 const WebDropData& drop_data, |
120 const gfx::Point& client_pt, | 120 const gfx::Point& client_pt, |
121 const gfx::Point& screen_pt, | 121 const gfx::Point& screen_pt, |
122 WebKit::WebDragOperationsMask operations_allowed) = 0; | 122 WebKit::WebDragOperationsMask operations_allowed, |
| 123 int key_modifiers) = 0; |
123 virtual void DragTargetDragOver( | 124 virtual void DragTargetDragOver( |
124 const gfx::Point& client_pt, | 125 const gfx::Point& client_pt, |
125 const gfx::Point& screen_pt, | 126 const gfx::Point& screen_pt, |
126 WebKit::WebDragOperationsMask operations_allowed) = 0; | 127 WebKit::WebDragOperationsMask operations_allowed, |
| 128 int key_modifiers) = 0; |
127 virtual void DragTargetDragLeave() = 0; | 129 virtual void DragTargetDragLeave() = 0; |
128 virtual void DragTargetDrop(const gfx::Point& client_pt, | 130 virtual void DragTargetDrop(const gfx::Point& client_pt, |
129 const gfx::Point& screen_pt) = 0; | 131 const gfx::Point& screen_pt, |
| 132 int key_modifiers) = 0; |
130 | 133 |
131 // Instructs the RenderView to automatically resize and send back updates | 134 // Instructs the RenderView to automatically resize and send back updates |
132 // for the new size. | 135 // for the new size. |
133 virtual void EnableAutoResize(const gfx::Size& min_size, | 136 virtual void EnableAutoResize(const gfx::Size& min_size, |
134 const gfx::Size& max_size) = 0; | 137 const gfx::Size& max_size) = 0; |
135 | 138 |
136 // Turns off auto-resize and gives a new size that the view should be. | 139 // Turns off auto-resize and gives a new size that the view should be. |
137 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; | 140 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; |
138 | 141 |
139 // Instructs the RenderView to send back updates to the preferred size. | 142 // Instructs the RenderView to send back updates to the preferred size. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 248 |
246 virtual void ToggleSpeechInput() = 0; | 249 virtual void ToggleSpeechInput() = 0; |
247 | 250 |
248 // Passes a list of Webkit preferences to the renderer. | 251 // Passes a list of Webkit preferences to the renderer. |
249 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; | 252 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; |
250 }; | 253 }; |
251 | 254 |
252 } // namespace content | 255 } // namespace content |
253 | 256 |
254 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 257 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |