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_RENDERER_RENDER_FRAME_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 // content created by the embedder. | 220 // content created by the embedder. |
221 virtual void AttachGuest(int element_instance_id) = 0; | 221 virtual void AttachGuest(int element_instance_id) = 0; |
222 | 222 |
223 // Detaches the browser plugin identified by |element_instance_id| from guest | 223 // Detaches the browser plugin identified by |element_instance_id| from guest |
224 // content created by the embedder. | 224 // content created by the embedder. |
225 virtual void DetachGuest(int element_instance_id) = 0; | 225 virtual void DetachGuest(int element_instance_id) = 0; |
226 | 226 |
227 // Notifies the browser of text selection changes made. | 227 // Notifies the browser of text selection changes made. |
228 virtual void SetSelectedText(const base::string16& selection_text, | 228 virtual void SetSelectedText(const base::string16& selection_text, |
229 size_t offset, | 229 size_t offset, |
230 const gfx::Range& range) = 0; | 230 const gfx::Range& range, |
231 bool user_initiated) = 0; | |
nasko
2017/05/04 16:10:24
It looks like this API is never called outside of
Peter Varga
2017/05/04 16:33:45
Shouldn't this be done in another patch? This chan
| |
231 | 232 |
232 // Ensures that builtin mojo bindings modules are available in |context|. | 233 // Ensures that builtin mojo bindings modules are available in |context|. |
233 virtual void EnsureMojoBuiltinsAreAvailable( | 234 virtual void EnsureMojoBuiltinsAreAvailable( |
234 v8::Isolate* isolate, | 235 v8::Isolate* isolate, |
235 v8::Local<v8::Context> context) = 0; | 236 v8::Local<v8::Context> context) = 0; |
236 | 237 |
237 // Adds |message| to the DevTools console. | 238 // Adds |message| to the DevTools console. |
238 virtual void AddMessageToConsole(ConsoleMessageLevel level, | 239 virtual void AddMessageToConsole(ConsoleMessageLevel level, |
239 const std::string& message) = 0; | 240 const std::string& message) = 0; |
240 | 241 |
(...skipping 26 matching lines...) Expand all Loading... | |
267 | 268 |
268 private: | 269 private: |
269 // This interface should only be implemented inside content. | 270 // This interface should only be implemented inside content. |
270 friend class RenderFrameImpl; | 271 friend class RenderFrameImpl; |
271 RenderFrame() {} | 272 RenderFrame() {} |
272 }; | 273 }; |
273 | 274 |
274 } // namespace content | 275 } // namespace content |
275 | 276 |
276 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 277 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
OLD | NEW |