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 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 const gfx::Point& client_pt, | 135 const gfx::Point& client_pt, |
136 const gfx::Point& screen_pt, | 136 const gfx::Point& screen_pt, |
137 blink::WebDragOperationsMask operations_allowed, | 137 blink::WebDragOperationsMask operations_allowed, |
138 int key_modifiers) = 0; | 138 int key_modifiers) = 0; |
139 virtual void DragTargetDragOver( | 139 virtual void DragTargetDragOver( |
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 blink::WebDragOperationsMask operations_allowed, | 142 blink::WebDragOperationsMask operations_allowed, |
143 int key_modifiers) = 0; | 143 int key_modifiers) = 0; |
144 virtual void DragTargetDragLeave() = 0; | 144 virtual void DragTargetDragLeave() = 0; |
145 virtual void DragTargetDrop(const gfx::Point& client_pt, | 145 virtual void DragTargetDrop(const DropData& drop_data, |
| 146 const gfx::Point& client_pt, |
146 const gfx::Point& screen_pt, | 147 const gfx::Point& screen_pt, |
147 int key_modifiers) = 0; | 148 int key_modifiers) = 0; |
148 | 149 |
149 // Instructs the RenderView to automatically resize and send back updates | 150 // Instructs the RenderView to automatically resize and send back updates |
150 // for the new size. | 151 // for the new size. |
151 virtual void EnableAutoResize(const gfx::Size& min_size, | 152 virtual void EnableAutoResize(const gfx::Size& min_size, |
152 const gfx::Size& max_size) = 0; | 153 const gfx::Size& max_size) = 0; |
153 | 154 |
154 // Turns off auto-resize and gives a new size that the view should be. | 155 // Turns off auto-resize and gives a new size that the view should be. |
155 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; | 156 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 219 |
219 private: | 220 private: |
220 // This interface should only be implemented inside content. | 221 // This interface should only be implemented inside content. |
221 friend class RenderViewHostImpl; | 222 friend class RenderViewHostImpl; |
222 RenderViewHost() {} | 223 RenderViewHost() {} |
223 }; | 224 }; |
224 | 225 |
225 } // namespace content | 226 } // namespace content |
226 | 227 |
227 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 228 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |