| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 virtual bool IsFTPDirectoryListing() = 0; | 217 virtual bool IsFTPDirectoryListing() = 0; |
| 218 | 218 |
| 219 // Attaches the browser plugin identified by |element_instance_id| to guest | 219 // Attaches the browser plugin identified by |element_instance_id| to guest |
| 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. | |
| 228 virtual void SetSelectedText(const base::string16& selection_text, | |
| 229 size_t offset, | |
| 230 const gfx::Range& range) = 0; | |
| 231 | |
| 232 // Ensures that builtin mojo bindings modules are available in |context|. | 227 // Ensures that builtin mojo bindings modules are available in |context|. |
| 233 virtual void EnsureMojoBuiltinsAreAvailable( | 228 virtual void EnsureMojoBuiltinsAreAvailable( |
| 234 v8::Isolate* isolate, | 229 v8::Isolate* isolate, |
| 235 v8::Local<v8::Context> context) = 0; | 230 v8::Local<v8::Context> context) = 0; |
| 236 | 231 |
| 237 // Adds |message| to the DevTools console. | 232 // Adds |message| to the DevTools console. |
| 238 virtual void AddMessageToConsole(ConsoleMessageLevel level, | 233 virtual void AddMessageToConsole(ConsoleMessageLevel level, |
| 239 const std::string& message) = 0; | 234 const std::string& message) = 0; |
| 240 | 235 |
| 241 // Returns the PreviewsState of this frame, a bitmask of potentially several | 236 // Returns the PreviewsState of this frame, a bitmask of potentially several |
| (...skipping 25 matching lines...) Expand all Loading... |
| 267 | 262 |
| 268 private: | 263 private: |
| 269 // This interface should only be implemented inside content. | 264 // This interface should only be implemented inside content. |
| 270 friend class RenderFrameImpl; | 265 friend class RenderFrameImpl; |
| 271 RenderFrame() {} | 266 RenderFrame() {} |
| 272 }; | 267 }; |
| 273 | 268 |
| 274 } // namespace content | 269 } // namespace content |
| 275 | 270 |
| 276 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 271 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |