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

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

Issue 2059533002: Change WebContentsDelegate::RunFileChooser to be frame based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on reviews. Created 4 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // Called when color chooser should open. Returns the opened color chooser. 334 // Called when color chooser should open. Returns the opened color chooser.
335 // Returns nullptr if we failed to open the color chooser (e.g. when there is 335 // Returns nullptr if we failed to open the color chooser (e.g. when there is
336 // a ColorChooserDialog already open on Windows). Ownership of the returned 336 // a ColorChooserDialog already open on Windows). Ownership of the returned
337 // pointer is transferred to the caller. 337 // pointer is transferred to the caller.
338 virtual ColorChooser* OpenColorChooser( 338 virtual ColorChooser* OpenColorChooser(
339 WebContents* web_contents, 339 WebContents* web_contents,
340 SkColor color, 340 SkColor color,
341 const std::vector<ColorSuggestion>& suggestions); 341 const std::vector<ColorSuggestion>& suggestions);
342 342
343 // Called when a file selection is to be done. 343 // Called when a file selection is to be done.
344 virtual void RunFileChooser(WebContents* web_contents, 344 virtual void RunFileChooser(RenderFrameHost* render_frame_host,
345 const FileChooserParams& params) {} 345 const FileChooserParams& params) {}
346 346
347 // Request to enumerate a directory. This is equivalent to running the file 347 // Request to enumerate a directory. This is equivalent to running the file
348 // chooser in directory-enumeration mode and having the user select the given 348 // chooser in directory-enumeration mode and having the user select the given
349 // directory. 349 // directory.
350 virtual void EnumerateDirectory(WebContents* web_contents, 350 virtual void EnumerateDirectory(WebContents* web_contents,
351 int request_id, 351 int request_id,
352 const base::FilePath& path) {} 352 const base::FilePath& path) {}
353 353
354 // Shows a chooser for the user to select a nearby Bluetooth device. The 354 // Shows a chooser for the user to select a nearby Bluetooth device. The
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 // Called when |this| is no longer the WebContentsDelegate for |source|. 541 // Called when |this| is no longer the WebContentsDelegate for |source|.
542 void Detach(WebContents* source); 542 void Detach(WebContents* source);
543 543
544 // The WebContents that this is currently a delegate for. 544 // The WebContents that this is currently a delegate for.
545 std::set<WebContents*> attached_contents_; 545 std::set<WebContents*> attached_contents_;
546 }; 546 };
547 547
548 } // namespace content 548 } // namespace content
549 549
550 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 550 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | extensions/browser/app_window/app_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698