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