| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // Notifies the listener that a directory enumeration is complete. | 99 // Notifies the listener that a directory enumeration is complete. |
| 100 virtual void DirectoryEnumerationFinished( | 100 virtual void DirectoryEnumerationFinished( |
| 101 int request_id, | 101 int request_id, |
| 102 const std::vector<base::FilePath>& files) = 0; | 102 const std::vector<base::FilePath>& files) = 0; |
| 103 | 103 |
| 104 // Tells the renderer not to add scrollbars with height and width below a | 104 // Tells the renderer not to add scrollbars with height and width below a |
| 105 // threshold. | 105 // threshold. |
| 106 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0; | 106 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0; |
| 107 | 107 |
| 108 // Notifies the renderer that a a drag operation that it started has ended, | |
| 109 // either in a drop or by being cancelled. | |
| 110 virtual void DragSourceEndedAt( | |
| 111 int client_x, int client_y, int screen_x, int screen_y, | |
| 112 blink::WebDragOperation operation) = 0; | |
| 113 | |
| 114 // Notifies the renderer that we're done with the drag and drop operation. | |
| 115 // This allows the renderer to reset some state. | |
| 116 virtual void DragSourceSystemDragEnded() = 0; | |
| 117 | |
| 118 // Instructs the RenderView to automatically resize and send back updates | 108 // Instructs the RenderView to automatically resize and send back updates |
| 119 // for the new size. | 109 // for the new size. |
| 120 virtual void EnableAutoResize(const gfx::Size& min_size, | 110 virtual void EnableAutoResize(const gfx::Size& min_size, |
| 121 const gfx::Size& max_size) = 0; | 111 const gfx::Size& max_size) = 0; |
| 122 | 112 |
| 123 // Turns off auto-resize and gives a new size that the view should be. | 113 // Turns off auto-resize and gives a new size that the view should be. |
| 124 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; | 114 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; |
| 125 | 115 |
| 126 // Instructs the RenderView to send back updates to the preferred size. | 116 // Instructs the RenderView to send back updates to the preferred size. |
| 127 virtual void EnablePreferredSizeMode() = 0; | 117 virtual void EnablePreferredSizeMode() = 0; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 170 |
| 181 private: | 171 private: |
| 182 // This interface should only be implemented inside content. | 172 // This interface should only be implemented inside content. |
| 183 friend class RenderViewHostImpl; | 173 friend class RenderViewHostImpl; |
| 184 RenderViewHost() {} | 174 RenderViewHost() {} |
| 185 }; | 175 }; |
| 186 | 176 |
| 187 } // namespace content | 177 } // namespace content |
| 188 | 178 |
| 189 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 179 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |