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

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

Issue 2508923003: Make printing work better with OOPIF. (try 2) (Closed)
Patch Set: Fix android_webview 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // use by resource metrics. 204 // use by resource metrics.
205 virtual int GetProxyCount() = 0; 205 virtual int GetProxyCount() = 0;
206 206
207 // Notifies the Listener that one or more files have been chosen by the user 207 // Notifies the Listener that one or more files have been chosen by the user
208 // from a file chooser dialog for the form. |permissions| is the file 208 // from a file chooser dialog for the form. |permissions| is the file
209 // selection mode in which the chooser dialog was created. 209 // selection mode in which the chooser dialog was created.
210 virtual void FilesSelectedInChooser( 210 virtual void FilesSelectedInChooser(
211 const std::vector<content::FileChooserFileInfo>& files, 211 const std::vector<content::FileChooserFileInfo>& files,
212 FileChooserParams::Mode permissions) = 0; 212 FileChooserParams::Mode permissions) = 0;
213 213
214 // Returns true if the frame has a selection.
215 virtual bool HasSelection() = 0;
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
222 private: 225 private:
223 // This interface should only be implemented inside content. 226 // This interface should only be implemented inside content.
224 friend class RenderFrameHostImpl; 227 friend class RenderFrameHostImpl;
225 RenderFrameHost() {} 228 RenderFrameHost() {}
226 }; 229 };
227 230
228 } // namespace content 231 } // namespace content
229 232
230 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 233 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/public/renderer/render_frame_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698