Chromium Code Reviews| 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. | 118 // Filters drop data before it is passed to RenderWidgetHostImpl. |
| 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; | 119 virtual void FilterDropData(DropData* drop_data) = 0; |
|
dcheng
2016/11/09 20:23:17
Does it make sense to move this somewhere else?
paulmeyer
2016/11/09 23:19:11
Yes, I'll move it into RenderWidgetHost now.
| |
| 142 | 120 |
| 143 // Instructs the RenderView to automatically resize and send back updates | 121 // Instructs the RenderView to automatically resize and send back updates |
| 144 // for the new size. | 122 // for the new size. |
| 145 virtual void EnableAutoResize(const gfx::Size& min_size, | 123 virtual void EnableAutoResize(const gfx::Size& min_size, |
| 146 const gfx::Size& max_size) = 0; | 124 const gfx::Size& max_size) = 0; |
| 147 | 125 |
| 148 // Turns off auto-resize and gives a new size that the view should be. | 126 // Turns off auto-resize and gives a new size that the view should be. |
| 149 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; | 127 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; |
| 150 | 128 |
| 151 // Instructs the RenderView to send back updates to the preferred size. | 129 // Instructs the RenderView to send back updates to the preferred size. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 | 183 |
| 206 private: | 184 private: |
| 207 // This interface should only be implemented inside content. | 185 // This interface should only be implemented inside content. |
| 208 friend class RenderViewHostImpl; | 186 friend class RenderViewHostImpl; |
| 209 RenderViewHost() {} | 187 RenderViewHost() {} |
| 210 }; | 188 }; |
| 211 | 189 |
| 212 } // namespace content | 190 } // namespace content |
| 213 | 191 |
| 214 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 192 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |