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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 virtual bool IsFTPDirectoryListing() = 0; | 216 virtual bool IsFTPDirectoryListing() = 0; |
217 | 217 |
218 // Attaches the browser plugin identified by |element_instance_id| to guest | 218 // Attaches the browser plugin identified by |element_instance_id| to guest |
219 // content created by the embedder. | 219 // content created by the embedder. |
220 virtual void AttachGuest(int element_instance_id) = 0; | 220 virtual void AttachGuest(int element_instance_id) = 0; |
221 | 221 |
222 // Detaches the browser plugin identified by |element_instance_id| from guest | 222 // Detaches the browser plugin identified by |element_instance_id| from guest |
223 // content created by the embedder. | 223 // content created by the embedder. |
224 virtual void DetachGuest(int element_instance_id) = 0; | 224 virtual void DetachGuest(int element_instance_id) = 0; |
225 | 225 |
226 // Notifies the browser of text selection changes made. | |
227 virtual void SetSelectedText(const base::string16& selection_text, | |
228 size_t offset, | |
229 const gfx::Range& range) = 0; | |
230 | |
231 // Ensures that builtin mojo bindings modules are available in |context|. | 226 // Ensures that builtin mojo bindings modules are available in |context|. |
232 virtual void EnsureMojoBuiltinsAreAvailable( | 227 virtual void EnsureMojoBuiltinsAreAvailable( |
233 v8::Isolate* isolate, | 228 v8::Isolate* isolate, |
234 v8::Local<v8::Context> context) = 0; | 229 v8::Local<v8::Context> context) = 0; |
235 | 230 |
236 // Adds |message| to the DevTools console. | 231 // Adds |message| to the DevTools console. |
237 virtual void AddMessageToConsole(ConsoleMessageLevel level, | 232 virtual void AddMessageToConsole(ConsoleMessageLevel level, |
238 const std::string& message) = 0; | 233 const std::string& message) = 0; |
239 // Forcefully detaches all connected DevTools clients. | 234 // Forcefully detaches all connected DevTools clients. |
240 virtual void DetachDevToolsForTest() = 0; | 235 virtual void DetachDevToolsForTest() = 0; |
(...skipping 27 matching lines...) Expand all Loading... |
268 | 263 |
269 private: | 264 private: |
270 // This interface should only be implemented inside content. | 265 // This interface should only be implemented inside content. |
271 friend class RenderFrameImpl; | 266 friend class RenderFrameImpl; |
272 RenderFrame() {} | 267 RenderFrame() {} |
273 }; | 268 }; |
274 | 269 |
275 } // namespace content | 270 } // namespace content |
276 | 271 |
277 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 272 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
OLD | NEW |