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

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

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Added test 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
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&)>;
43 46
44 // The interface provides a communication conduit with a frame in the renderer. 47 // The interface provides a communication conduit with a frame in the renderer.
45 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, 48 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
46 public IPC::Sender { 49 public IPC::Sender {
47 public: 50 public:
48 // Returns the RenderFrameHost given its ID and the ID of its render process. 51 // Returns the RenderFrameHost given its ID and the ID of its render process.
49 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost. 52 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost.
50 static RenderFrameHost* FromID(int render_process_id, int render_frame_id); 53 static RenderFrameHost* FromID(int render_process_id, int render_frame_id);
51 54
52 #if defined(OS_ANDROID) 55 #if defined(OS_ANDROID)
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 FileChooserParams::Mode permissions) = 0; 215 FileChooserParams::Mode permissions) = 0;
213 216
214 // Text surrounding selection. 217 // Text surrounding selection.
215 typedef base::Callback< 218 typedef base::Callback<
216 void(const base::string16& content, int start_offset, int end_offset)> 219 void(const base::string16& content, int start_offset, int end_offset)>
217 TextSurroundingSelectionCallback; 220 TextSurroundingSelectionCallback;
218 virtual void RequestTextSurroundingSelection( 221 virtual void RequestTextSurroundingSelection(
219 const TextSurroundingSelectionCallback& callback, 222 const TextSurroundingSelectionCallback& callback,
220 int max_length) = 0; 223 int max_length) = 0;
221 224
225 // Retrieves the text input info associated with the current form field.
226 virtual void RequestFocusedFormFieldData(FormFieldDataCallback& callback) = 0;
227
222 private: 228 private:
223 // This interface should only be implemented inside content. 229 // This interface should only be implemented inside content.
224 friend class RenderFrameHostImpl; 230 friend class RenderFrameHostImpl;
225 RenderFrameHost() {} 231 RenderFrameHost() {}
226 }; 232 };
227 233
228 } // namespace content 234 } // namespace content
229 235
230 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 236 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698