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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 // Notifies the Listener that one or more files have been chosen by the user | 233 // Notifies the Listener that one or more files have been chosen by the user |
234 // from a file chooser dialog for the form. |permissions| is the file | 234 // from a file chooser dialog for the form. |permissions| is the file |
235 // selection mode in which the chooser dialog was created. | 235 // selection mode in which the chooser dialog was created. |
236 virtual void FilesSelectedInChooser( | 236 virtual void FilesSelectedInChooser( |
237 const std::vector<content::FileChooserFileInfo>& files, | 237 const std::vector<content::FileChooserFileInfo>& files, |
238 FileChooserParams::Mode permissions) = 0; | 238 FileChooserParams::Mode permissions) = 0; |
239 | 239 |
240 // Returns true if the frame has a selection. | 240 // Returns true if the frame has a selection. |
241 virtual bool HasSelection() = 0; | 241 virtual bool HasSelection() = 0; |
242 | 242 |
243 // Returns true if the frame recently plays an audio. | |
244 virtual bool IsAudible() = 0; | |
nasko
2017/06/21 21:04:07
This is still a public method that isn't used outs
lpy
2017/06/21 22:28:18
Done.
| |
245 | |
243 // Text surrounding selection. | 246 // Text surrounding selection. |
244 typedef base::Callback< | 247 typedef base::Callback< |
245 void(const base::string16& content, int start_offset, int end_offset)> | 248 void(const base::string16& content, int start_offset, int end_offset)> |
246 TextSurroundingSelectionCallback; | 249 TextSurroundingSelectionCallback; |
247 virtual void RequestTextSurroundingSelection( | 250 virtual void RequestTextSurroundingSelection( |
248 const TextSurroundingSelectionCallback& callback, | 251 const TextSurroundingSelectionCallback& callback, |
249 int max_length) = 0; | 252 int max_length) = 0; |
250 | 253 |
251 // Tell the render frame to enable a set of javascript bindings. The argument | 254 // Tell the render frame to enable a set of javascript bindings. The argument |
252 // should be a combination of values from BindingsPolicy. | 255 // should be a combination of values from BindingsPolicy. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
288 | 291 |
289 private: | 292 private: |
290 // This interface should only be implemented inside content. | 293 // This interface should only be implemented inside content. |
291 friend class RenderFrameHostImpl; | 294 friend class RenderFrameHostImpl; |
292 RenderFrameHost() {} | 295 RenderFrameHost() {} |
293 }; | 296 }; |
294 | 297 |
295 } // namespace content | 298 } // namespace content |
296 | 299 |
297 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 300 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |