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

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

Issue 2903833002: Reland: Update TextSelection for non-user initiated events
Patch Set: Add test for JS cursor movement Created 3 years, 5 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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