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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 typedef base::Callback< | 215 typedef base::Callback< |
216 void(const base::string16& content, int start_offset, int end_offset)> | 216 void(const base::string16& content, int start_offset, int end_offset)> |
217 TextSurroundingSelectionCallback; | 217 TextSurroundingSelectionCallback; |
218 virtual void RequestTextSurroundingSelection( | 218 virtual void RequestTextSurroundingSelection( |
219 const TextSurroundingSelectionCallback& callback, | 219 const TextSurroundingSelectionCallback& callback, |
220 int max_length) = 0; | 220 int max_length) = 0; |
221 | 221 |
222 // Retrieves the text input info associated with the current form field. | 222 // Retrieves the text input info associated with the current form field. |
223 virtual void RequestFocusedFormFieldData(FormFieldDataCallback& callback) = 0; | 223 virtual void RequestFocusedFormFieldData(FormFieldDataCallback& callback) = 0; |
224 | 224 |
225 // Tell the render view to enable a set of javascript bindings. The argument | |
Charlie Reis
2016/12/16 01:01:52
s/view/frame/
Sam McNally
2017/01/12 09:27:08
Done.
| |
226 // should be a combination of values from BindingsPolicy. | |
227 virtual void AllowBindings(int binding_flags) = 0; | |
228 | |
229 // Returns a bitwise OR of bindings types that have been enabled for this | |
230 // RenderView. See BindingsPolicy for details. | |
Charlie Reis
2016/12/16 01:01:52
RenderFrame
Sam McNally
2017/01/12 09:27:08
Done.
| |
231 virtual int GetEnabledBindings() const = 0; | |
232 | |
225 private: | 233 private: |
226 // This interface should only be implemented inside content. | 234 // This interface should only be implemented inside content. |
227 friend class RenderFrameHostImpl; | 235 friend class RenderFrameHostImpl; |
228 RenderFrameHost() {} | 236 RenderFrameHost() {} |
229 }; | 237 }; |
230 | 238 |
231 } // namespace content | 239 } // namespace content |
232 | 240 |
233 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 241 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |