Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: content/public/renderer/render_frame.h

Issue 2856093003: Update TextSelection for non-user initiated events (Closed)
Patch Set: Update TextSelection for non-user initiated events Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/test/text_input_test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/test/text_input_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698