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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |