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

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 2513333002: Revert of Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Created 4 years, 1 month 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/common/BUILD.gn » ('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_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 22 matching lines...) Expand all
33 struct AXActionData; 33 struct AXActionData;
34 } 34 }
35 35
36 namespace content { 36 namespace content {
37 class AssociatedInterfaceProvider; 37 class AssociatedInterfaceProvider;
38 class RenderProcessHost; 38 class RenderProcessHost;
39 class RenderViewHost; 39 class RenderViewHost;
40 class RenderWidgetHostView; 40 class RenderWidgetHostView;
41 class SiteInstance; 41 class SiteInstance;
42 struct FileChooserFileInfo; 42 struct FileChooserFileInfo;
43 struct FormFieldData;
44
45 using FormFieldDataCallback = base::Callback<void(const FormFieldData&)>;
46 43
47 // The interface provides a communication conduit with a frame in the renderer. 44 // The interface provides a communication conduit with a frame in the renderer.
48 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, 45 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
49 public IPC::Sender { 46 public IPC::Sender {
50 public: 47 public:
51 // Returns the RenderFrameHost given its ID and the ID of its render process. 48 // Returns the RenderFrameHost given its ID and the ID of its render process.
52 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost. 49 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost.
53 static RenderFrameHost* FromID(int render_process_id, int render_frame_id); 50 static RenderFrameHost* FromID(int render_process_id, int render_frame_id);
54 51
55 #if defined(OS_ANDROID) 52 #if defined(OS_ANDROID)
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 virtual bool HasSelection() = 0; 215 virtual bool HasSelection() = 0;
219 216
220 // Text surrounding selection. 217 // Text surrounding selection.
221 typedef base::Callback< 218 typedef base::Callback<
222 void(const base::string16& content, int start_offset, int end_offset)> 219 void(const base::string16& content, int start_offset, int end_offset)>
223 TextSurroundingSelectionCallback; 220 TextSurroundingSelectionCallback;
224 virtual void RequestTextSurroundingSelection( 221 virtual void RequestTextSurroundingSelection(
225 const TextSurroundingSelectionCallback& callback, 222 const TextSurroundingSelectionCallback& callback,
226 int max_length) = 0; 223 int max_length) = 0;
227 224
228 // Retrieves the text input info associated with the current form field.
229 virtual void RequestFocusedFormFieldData(FormFieldDataCallback& callback) = 0;
230
231 private: 225 private:
232 // This interface should only be implemented inside content. 226 // This interface should only be implemented inside content.
233 friend class RenderFrameHostImpl; 227 friend class RenderFrameHostImpl;
234 RenderFrameHost() {} 228 RenderFrameHost() {}
235 }; 229 };
236 230
237 } // namespace content 231 } // namespace content
238 232
239 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 233 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698