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