Chromium Code Reviews| 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; | |
| 245 virtual void OnAudioStateChanged(bool audible) = 0; | |
|
nasko
2017/06/20 16:17:45
These APIs are not used outside of content/, so th
lpy
2017/06/20 22:28:53
Done.
| |
| 246 | |
| 243 // Text surrounding selection. | 247 // Text surrounding selection. |
| 244 typedef base::Callback< | 248 typedef base::Callback< |
| 245 void(const base::string16& content, int start_offset, int end_offset)> | 249 void(const base::string16& content, int start_offset, int end_offset)> |
| 246 TextSurroundingSelectionCallback; | 250 TextSurroundingSelectionCallback; |
| 247 virtual void RequestTextSurroundingSelection( | 251 virtual void RequestTextSurroundingSelection( |
| 248 const TextSurroundingSelectionCallback& callback, | 252 const TextSurroundingSelectionCallback& callback, |
| 249 int max_length) = 0; | 253 int max_length) = 0; |
| 250 | 254 |
| 251 // Tell the render frame to enable a set of javascript bindings. The argument | 255 // Tell the render frame to enable a set of javascript bindings. The argument |
| 252 // should be a combination of values from BindingsPolicy. | 256 // should be a combination of values from BindingsPolicy. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 288 | 292 |
| 289 private: | 293 private: |
| 290 // This interface should only be implemented inside content. | 294 // This interface should only be implemented inside content. |
| 291 friend class RenderFrameHostImpl; | 295 friend class RenderFrameHostImpl; |
| 292 RenderFrameHost() {} | 296 RenderFrameHost() {} |
| 293 }; | 297 }; |
| 294 | 298 |
| 295 } // namespace content | 299 } // namespace content |
| 296 | 300 |
| 297 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 301 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |