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

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

Issue 2426503002: Make printing work better with OOPIF. (Closed)
Patch Set: Fix build, fix some tests Created 4 years, 2 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
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // use by resource metrics. 209 // use by resource metrics.
210 virtual int GetProxyCount() = 0; 210 virtual int GetProxyCount() = 0;
211 211
212 // Notifies the Listener that one or more files have been chosen by the user 212 // Notifies the Listener that one or more files have been chosen by the user
213 // from a file chooser dialog for the form. |permissions| is the file 213 // from a file chooser dialog for the form. |permissions| is the file
214 // selection mode in which the chooser dialog was created. 214 // selection mode in which the chooser dialog was created.
215 virtual void FilesSelectedInChooser( 215 virtual void FilesSelectedInChooser(
216 const std::vector<content::FileChooserFileInfo>& files, 216 const std::vector<content::FileChooserFileInfo>& files,
217 FileChooserParams::Mode permissions) = 0; 217 FileChooserParams::Mode permissions) = 0;
218 218
219 // Returns true if the frame has selection.
220 virtual bool HasSelection() = 0;
221
219 // Text surrounding selection. 222 // Text surrounding selection.
220 typedef base::Callback< 223 typedef base::Callback<
221 void(const base::string16& content, int start_offset, int end_offset)> 224 void(const base::string16& content, int start_offset, int end_offset)>
222 TextSurroundingSelectionCallback; 225 TextSurroundingSelectionCallback;
223 virtual void RequestTextSurroundingSelection( 226 virtual void RequestTextSurroundingSelection(
224 const TextSurroundingSelectionCallback& callback, 227 const TextSurroundingSelectionCallback& callback,
225 int max_length) = 0; 228 int max_length) = 0;
226 229
227 private: 230 private:
228 // This interface should only be implemented inside content. 231 // This interface should only be implemented inside content.
229 friend class RenderFrameHostImpl; 232 friend class RenderFrameHostImpl;
230 RenderFrameHost() {} 233 RenderFrameHost() {}
231 }; 234 };
232 235
233 } // namespace content 236 } // namespace content
234 237
235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 238 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698