OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // use by resource metrics. | 204 // use by resource metrics. |
205 virtual int GetProxyCount() = 0; | 205 virtual int GetProxyCount() = 0; |
206 | 206 |
207 // Notifies the Listener that one or more files have been chosen by the user | 207 // Notifies the Listener that one or more files have been chosen by the user |
208 // from a file chooser dialog for the form. |permissions| is the file | 208 // from a file chooser dialog for the form. |permissions| is the file |
209 // selection mode in which the chooser dialog was created. | 209 // selection mode in which the chooser dialog was created. |
210 virtual void FilesSelectedInChooser( | 210 virtual void FilesSelectedInChooser( |
211 const std::vector<content::FileChooserFileInfo>& files, | 211 const std::vector<content::FileChooserFileInfo>& files, |
212 FileChooserParams::Mode permissions) = 0; | 212 FileChooserParams::Mode permissions) = 0; |
213 | 213 |
214 // Returns true if the frame has a selection. | |
215 virtual bool HasSelection() = 0; | |
216 | |
217 // Text surrounding selection. | 214 // Text surrounding selection. |
218 typedef base::Callback< | 215 typedef base::Callback< |
219 void(const base::string16& content, int start_offset, int end_offset)> | 216 void(const base::string16& content, int start_offset, int end_offset)> |
220 TextSurroundingSelectionCallback; | 217 TextSurroundingSelectionCallback; |
221 virtual void RequestTextSurroundingSelection( | 218 virtual void RequestTextSurroundingSelection( |
222 const TextSurroundingSelectionCallback& callback, | 219 const TextSurroundingSelectionCallback& callback, |
223 int max_length) = 0; | 220 int max_length) = 0; |
224 | 221 |
225 private: | 222 private: |
226 // This interface should only be implemented inside content. | 223 // This interface should only be implemented inside content. |
227 friend class RenderFrameHostImpl; | 224 friend class RenderFrameHostImpl; |
228 RenderFrameHost() {} | 225 RenderFrameHost() {} |
229 }; | 226 }; |
230 | 227 |
231 } // namespace content | 228 } // namespace content |
232 | 229 |
233 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 230 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |