| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Notifies the renderer that a a drag operation that it started has ended, | 108 // Notifies the renderer that a a drag operation that it started has ended, |
| 109 // either in a drop or by being cancelled. | 109 // either in a drop or by being cancelled. |
| 110 virtual void DragSourceEndedAt( | 110 virtual void DragSourceEndedAt( |
| 111 int client_x, int client_y, int screen_x, int screen_y, | 111 int client_x, int client_y, int screen_x, int screen_y, |
| 112 blink::WebDragOperation operation) = 0; | 112 blink::WebDragOperation operation) = 0; |
| 113 | 113 |
| 114 // Notifies the renderer that we're done with the drag and drop operation. | 114 // Notifies the renderer that we're done with the drag and drop operation. |
| 115 // This allows the renderer to reset some state. | 115 // This allows the renderer to reset some state. |
| 116 virtual void DragSourceSystemDragEnded() = 0; | 116 virtual void DragSourceSystemDragEnded() = 0; |
| 117 | 117 |
| 118 // D&d drop target messages that get sent to WebKit. | |
| 119 virtual void DragTargetDragEnter( | |
| 120 const DropData& drop_data, | |
| 121 const gfx::Point& client_pt, | |
| 122 const gfx::Point& screen_pt, | |
| 123 blink::WebDragOperationsMask operations_allowed, | |
| 124 int key_modifiers) = 0; | |
| 125 virtual void DragTargetDragEnterWithMetaData( | |
| 126 const std::vector<DropData::Metadata>& metadata, | |
| 127 const gfx::Point& client_pt, | |
| 128 const gfx::Point& screen_pt, | |
| 129 blink::WebDragOperationsMask operations_allowed, | |
| 130 int key_modifiers) = 0; | |
| 131 virtual void DragTargetDragOver( | |
| 132 const gfx::Point& client_pt, | |
| 133 const gfx::Point& screen_pt, | |
| 134 blink::WebDragOperationsMask operations_allowed, | |
| 135 int key_modifiers) = 0; | |
| 136 virtual void DragTargetDragLeave() = 0; | |
| 137 virtual void DragTargetDrop(const DropData& drop_data, | |
| 138 const gfx::Point& client_pt, | |
| 139 const gfx::Point& screen_pt, | |
| 140 int key_modifiers) = 0; | |
| 141 virtual void FilterDropData(DropData* drop_data) = 0; | |
| 142 | |
| 143 // Instructs the RenderView to automatically resize and send back updates | 118 // Instructs the RenderView to automatically resize and send back updates |
| 144 // for the new size. | 119 // for the new size. |
| 145 virtual void EnableAutoResize(const gfx::Size& min_size, | 120 virtual void EnableAutoResize(const gfx::Size& min_size, |
| 146 const gfx::Size& max_size) = 0; | 121 const gfx::Size& max_size) = 0; |
| 147 | 122 |
| 148 // Turns off auto-resize and gives a new size that the view should be. | 123 // Turns off auto-resize and gives a new size that the view should be. |
| 149 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; | 124 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; |
| 150 | 125 |
| 151 // Instructs the RenderView to send back updates to the preferred size. | 126 // Instructs the RenderView to send back updates to the preferred size. |
| 152 virtual void EnablePreferredSizeMode() = 0; | 127 virtual void EnablePreferredSizeMode() = 0; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 180 |
| 206 private: | 181 private: |
| 207 // This interface should only be implemented inside content. | 182 // This interface should only be implemented inside content. |
| 208 friend class RenderViewHostImpl; | 183 friend class RenderViewHostImpl; |
| 209 RenderViewHost() {} | 184 RenderViewHost() {} |
| 210 }; | 185 }; |
| 211 | 186 |
| 212 } // namespace content | 187 } // namespace content |
| 213 | 188 |
| 214 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 189 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |