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