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

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

Issue 23026006: Add support for color input datalist on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 // NavigationController has configured its pending entry, but it has not yet 330 // NavigationController has configured its pending entry, but it has not yet
331 // been committed. 331 // been committed.
332 virtual void DidNavigateToPendingEntry(WebContents* source) {} 332 virtual void DidNavigateToPendingEntry(WebContents* source) {}
333 333
334 // Returns a pointer to a service to manage JavaScript dialogs. May return 334 // Returns a pointer to a service to manage JavaScript dialogs. May return
335 // NULL in which case dialogs aren't shown. 335 // NULL in which case dialogs aren't shown.
336 virtual JavaScriptDialogManager* GetJavaScriptDialogManager(); 336 virtual JavaScriptDialogManager* GetJavaScriptDialogManager();
337 337
338 // Called when color chooser should open. Returns the opened color chooser. 338 // Called when color chooser should open. Returns the opened color chooser.
339 // Ownership of the returned pointer is transferred to the caller. 339 // Ownership of the returned pointer is transferred to the caller.
340 virtual ColorChooser* OpenColorChooser(WebContents* web_contents, 340 virtual ColorChooser* OpenColorChooser(
341 SkColor color); 341 WebContents* web_contents,
342 SkColor color,
343 const std::vector<SkColor>& suggestions,
344 const std::vector<string16>& suggestion_labels);
342 345
343 // Called when a file selection is to be done. 346 // Called when a file selection is to be done.
344 virtual void RunFileChooser(WebContents* web_contents, 347 virtual void RunFileChooser(WebContents* web_contents,
345 const FileChooserParams& params) {} 348 const FileChooserParams& params) {}
346 349
347 // Request to enumerate a directory. This is equivalent to running the file 350 // 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 351 // chooser in directory-enumeration mode and having the user select the given
349 // directory. 352 // directory.
350 virtual void EnumerateDirectory(WebContents* web_contents, 353 virtual void EnumerateDirectory(WebContents* web_contents,
351 int request_id, 354 int request_id,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // Called when |this| is no longer the WebContentsDelegate for |source|. 450 // Called when |this| is no longer the WebContentsDelegate for |source|.
448 void Detach(WebContents* source); 451 void Detach(WebContents* source);
449 452
450 // The WebContents that this is currently a delegate for. 453 // The WebContents that this is currently a delegate for.
451 std::set<WebContents*> attached_contents_; 454 std::set<WebContents*> attached_contents_;
452 }; 455 };
453 456
454 } // namespace content 457 } // namespace content
455 458
456 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 459 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698