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

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: Open no longer returns NULL, protected ctor/dtor Created 7 years, 8 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // NavigationController has configured its pending entry, but it has not yet 315 // NavigationController has configured its pending entry, but it has not yet
316 // been committed. 316 // been committed.
317 virtual void DidNavigateToPendingEntry(WebContents* source) {} 317 virtual void DidNavigateToPendingEntry(WebContents* source) {}
318 318
319 // Returns a pointer to a service to manage JavaScript dialogs. May return 319 // Returns a pointer to a service to manage JavaScript dialogs. May return
320 // NULL in which case dialogs aren't shown. 320 // NULL in which case dialogs aren't shown.
321 virtual JavaScriptDialogManager* GetJavaScriptDialogManager(); 321 virtual JavaScriptDialogManager* GetJavaScriptDialogManager();
322 322
323 // Called when color chooser should open. Returns the opened color chooser. 323 // Called when color chooser should open. Returns the opened color chooser.
324 // Ownership of the returned pointer is transferred to the caller. 324 // Ownership of the returned pointer is transferred to the caller.
325 virtual content::ColorChooser* OpenColorChooser(WebContents* web_contents, 325 virtual ColorChooser* OpenColorChooser(WebContents* web_contents,
326 int color_chooser_id, 326 SkColor color);
327 SkColor color);
328
329 virtual void DidEndColorChooser() {}
330 327
331 // Called when a file selection is to be done. 328 // Called when a file selection is to be done.
332 virtual void RunFileChooser(WebContents* web_contents, 329 virtual void RunFileChooser(WebContents* web_contents,
333 const FileChooserParams& params) {} 330 const FileChooserParams& params) {}
334 331
335 // Request to enumerate a directory. This is equivalent to running the file 332 // Request to enumerate a directory. This is equivalent to running the file
336 // chooser in directory-enumeration mode and having the user select the given 333 // chooser in directory-enumeration mode and having the user select the given
337 // directory. 334 // directory.
338 virtual void EnumerateDirectory(WebContents* web_contents, 335 virtual void EnumerateDirectory(WebContents* web_contents,
339 int request_id, 336 int request_id,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // Called when |this| is no longer the WebContentsDelegate for |source|. 428 // Called when |this| is no longer the WebContentsDelegate for |source|.
432 void Detach(WebContents* source); 429 void Detach(WebContents* source);
433 430
434 // The WebContents that this is currently a delegate for. 431 // The WebContents that this is currently a delegate for.
435 std::set<WebContents*> attached_contents_; 432 std::set<WebContents*> attached_contents_;
436 }; 433 };
437 434
438 } // namespace content 435 } // namespace content
439 436
440 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698