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

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

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 8 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
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/browser/navigation_type.h" 15 #include "content/public/browser/navigation_type.h"
16 #include "content/public/common/page_transition_types.h" 16 #include "content/public/common/page_transition_types.h"
17 #include "content/public/common/window_container_type.h" 17 #include "content/public/common/window_container_type.h"
18 #include "third_party/skia/include/core/SkColor.h"
18 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
19 #include "webkit/glue/window_open_disposition.h" 20 #include "webkit/glue/window_open_disposition.h"
20 21
21 class FilePath; 22 class FilePath;
22 class GURL; 23 class GURL;
23 class TabContents; 24 class TabContents;
24 struct NativeWebKeyboardEvent; 25 struct NativeWebKeyboardEvent;
25 26
26 namespace base { 27 namespace base {
27 class ListValue; 28 class ListValue;
28 } 29 }
29 30
30 namespace content { 31 namespace content {
31 class BrowserContext; 32 class BrowserContext;
33 class ColorChooser;
32 class DownloadItem; 34 class DownloadItem;
33 class JavaScriptDialogCreator; 35 class JavaScriptDialogCreator;
34 class RenderViewHost; 36 class RenderViewHost;
35 class WebContents; 37 class WebContents;
36 class WebIntentsDispatcher; 38 class WebIntentsDispatcher;
37 struct ContextMenuParams; 39 struct ContextMenuParams;
38 struct FileChooserParams; 40 struct FileChooserParams;
39 struct SSLStatus; 41 struct SSLStatus;
40 } 42 }
41 43
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 305
304 // Invoked when navigating to a pending entry. When invoked the 306 // Invoked when navigating to a pending entry. When invoked the
305 // NavigationController has configured its pending entry, but it has not yet 307 // NavigationController has configured its pending entry, but it has not yet
306 // been committed. 308 // been committed.
307 virtual void DidNavigateToPendingEntry(WebContents* tab) {} 309 virtual void DidNavigateToPendingEntry(WebContents* tab) {}
308 310
309 // Returns a pointer to a service to create JavaScript dialogs. May return 311 // Returns a pointer to a service to create JavaScript dialogs. May return
310 // NULL in which case dialogs aren't shown. 312 // NULL in which case dialogs aren't shown.
311 virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator(); 313 virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator();
312 314
315 // Called when color chooser should open. Returns the opened color chooser.
316 virtual content::ColorChooser* OpenColorChooser(WebContents* tab,
317 int color_chooser_id,
318 const SkColor& color);
319
320 virtual void DidEndColorChooser() {}
321
313 // Called when a file selection is to be done. 322 // Called when a file selection is to be done.
314 virtual void RunFileChooser(WebContents* tab, 323 virtual void RunFileChooser(WebContents* tab,
315 const FileChooserParams& params) {} 324 const FileChooserParams& params) {}
316 325
317 // Request to enumerate a directory. This is equivalent to running the file 326 // Request to enumerate a directory. This is equivalent to running the file
318 // chooser in directory-enumeration mode and having the user select the given 327 // chooser in directory-enumeration mode and having the user select the given
319 // directory. 328 // directory.
320 virtual void EnumerateDirectory(WebContents* tab, 329 virtual void EnumerateDirectory(WebContents* tab,
321 int request_id, 330 int request_id,
322 const FilePath& path) {} 331 const FilePath& path) {}
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // Called when |this| is no longer the WebContentsDelegate for |source|. 404 // Called when |this| is no longer the WebContentsDelegate for |source|.
396 void Detach(WebContents* source); 405 void Detach(WebContents* source);
397 406
398 // The WebContents that this is currently a delegate for. 407 // The WebContents that this is currently a delegate for.
399 std::set<WebContents*> attached_contents_; 408 std::set<WebContents*> attached_contents_;
400 }; 409 };
401 410
402 } // namespace content 411 } // namespace content
403 412
404 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 413 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698