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

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: Fixed issues Created 8 years, 10 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 #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;
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 301
301 // Invoked when navigating to a pending entry. When invoked the 302 // Invoked when navigating to a pending entry. When invoked the
302 // NavigationController has configured its pending entry, but it has not yet 303 // NavigationController has configured its pending entry, but it has not yet
303 // been committed. 304 // been committed.
304 virtual void DidNavigateToPendingEntry(WebContents* tab) {} 305 virtual void DidNavigateToPendingEntry(WebContents* tab) {}
305 306
306 // Returns a pointer to a service to create JavaScript dialogs. May return 307 // Returns a pointer to a service to create JavaScript dialogs. May return
307 // NULL in which case dialogs aren't shown. 308 // NULL in which case dialogs aren't shown.
308 virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator(); 309 virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator();
309 310
311 // Called when color chooser should open.
312 virtual void OpenColorChooser(WebContents* tab,
313 int color_chooser_id,
314 const SkColor& color) {}
315
316 // Called when color chooser should end.
317 virtual void EndColorChooser(WebContents* tab, int color_chooser_id) {}
jam 2012/02/22 02:55:20 it seems that this method and the one below are pr
keishi 2012/02/24 14:38:54 If I were to add content::ColorChooser interface,
jam 2012/02/24 21:41:17 whichever code that implements EndColorChooser/Set
318
319 // Called when the selected color in color chooser should change.
320 virtual void SetSelectedColorInColorChooser(WebContents* tab,
321 int color_chooser_id,
322 const SkColor& color) {}
323
310 // Called when a file selection is to be done. 324 // Called when a file selection is to be done.
311 virtual void RunFileChooser(WebContents* tab, 325 virtual void RunFileChooser(WebContents* tab,
312 const FileChooserParams& params) {} 326 const FileChooserParams& params) {}
313 327
314 // Request to enumerate a directory. This is equivalent to running the file 328 // Request to enumerate a directory. This is equivalent to running the file
315 // chooser in directory-enumeration mode and having the user select the given 329 // chooser in directory-enumeration mode and having the user select the given
316 // directory. 330 // directory.
317 virtual void EnumerateDirectory(WebContents* tab, 331 virtual void EnumerateDirectory(WebContents* tab,
318 int request_id, 332 int request_id,
319 const FilePath& path) {} 333 const FilePath& path) {}
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // Called when |this| is no longer the WebContentsDelegate for |source|. 402 // Called when |this| is no longer the WebContentsDelegate for |source|.
389 void Detach(WebContents* source); 403 void Detach(WebContents* source);
390 404
391 // The WebContents that this is currently a delegate for. 405 // The WebContents that this is currently a delegate for.
392 std::set<WebContents*> attached_contents_; 406 std::set<WebContents*> attached_contents_;
393 }; 407 };
394 408
395 } // namespace content 409 } // namespace content
396 410
397 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 411 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698