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

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: Rebased Created 7 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 | 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 22 matching lines...) Expand all
33 namespace content { 33 namespace content {
34 class BrowserContext; 34 class BrowserContext;
35 class ColorChooser; 35 class ColorChooser;
36 class DownloadItem; 36 class DownloadItem;
37 class JavaScriptDialogManager; 37 class JavaScriptDialogManager;
38 class PageState; 38 class PageState;
39 class RenderViewHost; 39 class RenderViewHost;
40 class SessionStorageNamespace; 40 class SessionStorageNamespace;
41 class WebContents; 41 class WebContents;
42 class WebContentsImpl; 42 class WebContentsImpl;
43 struct ColorSuggestion;
43 struct ContextMenuParams; 44 struct ContextMenuParams;
44 struct DropData; 45 struct DropData;
45 struct FileChooserParams; 46 struct FileChooserParams;
46 struct NativeWebKeyboardEvent; 47 struct NativeWebKeyboardEvent;
47 struct Referrer; 48 struct Referrer;
48 struct SSLStatus; 49 struct SSLStatus;
49 } 50 }
50 51
51 namespace gfx { 52 namespace gfx {
52 class Point; 53 class Point;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // NavigationController has configured its pending entry, but it has not yet 328 // NavigationController has configured its pending entry, but it has not yet
328 // been committed. 329 // been committed.
329 virtual void DidNavigateToPendingEntry(WebContents* source) {} 330 virtual void DidNavigateToPendingEntry(WebContents* source) {}
330 331
331 // Returns a pointer to a service to manage JavaScript dialogs. May return 332 // Returns a pointer to a service to manage JavaScript dialogs. May return
332 // NULL in which case dialogs aren't shown. 333 // NULL in which case dialogs aren't shown.
333 virtual JavaScriptDialogManager* GetJavaScriptDialogManager(); 334 virtual JavaScriptDialogManager* GetJavaScriptDialogManager();
334 335
335 // Called when color chooser should open. Returns the opened color chooser. 336 // Called when color chooser should open. Returns the opened color chooser.
336 // Ownership of the returned pointer is transferred to the caller. 337 // Ownership of the returned pointer is transferred to the caller.
337 virtual ColorChooser* OpenColorChooser(WebContents* web_contents, 338 virtual ColorChooser* OpenColorChooser(
338 SkColor color); 339 WebContents* web_contents,
340 SkColor color,
341 const std::vector<ColorSuggestion>& suggestions);
339 342
340 // Called when a file selection is to be done. 343 // Called when a file selection is to be done.
341 virtual void RunFileChooser(WebContents* web_contents, 344 virtual void RunFileChooser(WebContents* web_contents,
342 const FileChooserParams& params) {} 345 const FileChooserParams& params) {}
343 346
344 // 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
345 // 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
346 // directory. 349 // directory.
347 virtual void EnumerateDirectory(WebContents* web_contents, 350 virtual void EnumerateDirectory(WebContents* web_contents,
348 int request_id, 351 int request_id,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 // Called when |this| is no longer the WebContentsDelegate for |source|. 468 // Called when |this| is no longer the WebContentsDelegate for |source|.
466 void Detach(WebContents* source); 469 void Detach(WebContents* source);
467 470
468 // The WebContents that this is currently a delegate for. 471 // The WebContents that this is currently a delegate for.
469 std::set<WebContents*> attached_contents_; 472 std::set<WebContents*> attached_contents_;
470 }; 473 };
471 474
472 } // namespace content 475 } // namespace content
473 476
474 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 477 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698