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

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

Issue 13150004: Support color chooser inside extesions, apps, chrome frame, dev tool (Closed) Base URL: http://git.chromium.org/chromium/src.git@ngcolor
Patch Set: Created 7 years, 9 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // Returns a pointer to a service to manage JavaScript dialogs. May return 316 // Returns a pointer to a service to manage JavaScript dialogs. May return
317 // NULL in which case dialogs aren't shown. 317 // NULL in which case dialogs aren't shown.
318 virtual JavaScriptDialogManager* GetJavaScriptDialogManager(); 318 virtual JavaScriptDialogManager* GetJavaScriptDialogManager();
319 319
320 // Called when color chooser should open. Returns the opened color chooser. 320 // Called when color chooser should open. Returns the opened color chooser.
321 // Ownership of the returned pointer is transferred to the caller. 321 // Ownership of the returned pointer is transferred to the caller.
322 virtual content::ColorChooser* OpenColorChooser(WebContents* web_contents, 322 virtual content::ColorChooser* OpenColorChooser(WebContents* web_contents,
323 int color_chooser_id, 323 int color_chooser_id,
324 SkColor color); 324 SkColor color);
325 325
326 virtual void DidEndColorChooser() {}
327
328 // Called when a file selection is to be done. 326 // Called when a file selection is to be done.
329 virtual void RunFileChooser(WebContents* web_contents, 327 virtual void RunFileChooser(WebContents* web_contents,
330 const FileChooserParams& params) {} 328 const FileChooserParams& params) {}
331 329
332 // Request to enumerate a directory. This is equivalent to running the file 330 // Request to enumerate a directory. This is equivalent to running the file
333 // chooser in directory-enumeration mode and having the user select the given 331 // chooser in directory-enumeration mode and having the user select the given
334 // directory. 332 // directory.
335 virtual void EnumerateDirectory(WebContents* web_contents, 333 virtual void EnumerateDirectory(WebContents* web_contents,
336 int request_id, 334 int request_id,
337 const base::FilePath& path) {} 335 const base::FilePath& path) {}
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // Called when |this| is no longer the WebContentsDelegate for |source|. 426 // Called when |this| is no longer the WebContentsDelegate for |source|.
429 void Detach(WebContents* source); 427 void Detach(WebContents* source);
430 428
431 // The WebContents that this is currently a delegate for. 429 // The WebContents that this is currently a delegate for.
432 std::set<WebContents*> attached_contents_; 430 std::set<WebContents*> attached_contents_;
433 }; 431 };
434 432
435 } // namespace content 433 } // namespace content
436 434
437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 435 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698