| 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 "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 const gfx::Point& client_pt, | 134 const gfx::Point& client_pt, |
| 135 const gfx::Point& screen_pt, | 135 const gfx::Point& screen_pt, |
| 136 blink::WebDragOperationsMask operations_allowed, | 136 blink::WebDragOperationsMask operations_allowed, |
| 137 int key_modifiers) = 0; | 137 int key_modifiers) = 0; |
| 138 virtual void DragTargetDragOver( | 138 virtual void DragTargetDragOver( |
| 139 const gfx::Point& client_pt, | 139 const gfx::Point& client_pt, |
| 140 const gfx::Point& screen_pt, | 140 const gfx::Point& screen_pt, |
| 141 blink::WebDragOperationsMask operations_allowed, | 141 blink::WebDragOperationsMask operations_allowed, |
| 142 int key_modifiers) = 0; | 142 int key_modifiers) = 0; |
| 143 virtual void DragTargetDragLeave() = 0; | 143 virtual void DragTargetDragLeave() = 0; |
| 144 virtual void DragTargetDrop(const gfx::Point& client_pt, | 144 virtual void DragTargetDrop(const DropData& drop_data, |
| 145 const gfx::Point& client_pt, |
| 145 const gfx::Point& screen_pt, | 146 const gfx::Point& screen_pt, |
| 146 int key_modifiers) = 0; | 147 int key_modifiers) = 0; |
| 148 virtual void FilterDropData(DropData* drop_data) = 0; |
| 147 | 149 |
| 148 // Instructs the RenderView to automatically resize and send back updates | 150 // Instructs the RenderView to automatically resize and send back updates |
| 149 // for the new size. | 151 // for the new size. |
| 150 virtual void EnableAutoResize(const gfx::Size& min_size, | 152 virtual void EnableAutoResize(const gfx::Size& min_size, |
| 151 const gfx::Size& max_size) = 0; | 153 const gfx::Size& max_size) = 0; |
| 152 | 154 |
| 153 // 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. |
| 154 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; | 156 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; |
| 155 | 157 |
| 156 // Instructs the RenderView to send back updates to the preferred size. | 158 // Instructs the RenderView to send back updates to the preferred size. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 212 |
| 211 private: | 213 private: |
| 212 // This interface should only be implemented inside content. | 214 // This interface should only be implemented inside content. |
| 213 friend class RenderViewHostImpl; | 215 friend class RenderViewHostImpl; |
| 214 RenderViewHost() {} | 216 RenderViewHost() {} |
| 215 }; | 217 }; |
| 216 | 218 |
| 217 } // namespace content | 219 } // namespace content |
| 218 | 220 |
| 219 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 221 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |