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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

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: 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 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 } 1977 }
1978 1978
1979 void WebContentsImpl::DidChooseColorInColorChooser(int color_chooser_id, 1979 void WebContentsImpl::DidChooseColorInColorChooser(int color_chooser_id,
1980 SkColor color) { 1980 SkColor color) {
1981 Send(new ViewMsg_DidChooseColorResponse( 1981 Send(new ViewMsg_DidChooseColorResponse(
1982 GetRoutingID(), color_chooser_id, color)); 1982 GetRoutingID(), color_chooser_id, color));
1983 } 1983 }
1984 1984
1985 void WebContentsImpl::DidEndColorChooser(int color_chooser_id) { 1985 void WebContentsImpl::DidEndColorChooser(int color_chooser_id) {
1986 Send(new ViewMsg_DidEndColorChooser(GetRoutingID(), color_chooser_id)); 1986 Send(new ViewMsg_DidEndColorChooser(GetRoutingID(), color_chooser_id));
1987 if (delegate_)
1988 delegate_->DidEndColorChooser();
1989 color_chooser_ = NULL; 1987 color_chooser_ = NULL;
1990 } 1988 }
1991 1989
1992 int WebContentsImpl::DownloadFavicon(const GURL& url, 1990 int WebContentsImpl::DownloadFavicon(const GURL& url,
1993 bool is_favicon, 1991 bool is_favicon,
1994 int image_size, 1992 int image_size,
1995 const FaviconDownloadCallback& callback) { 1993 const FaviconDownloadCallback& callback) {
1996 RenderViewHost* host = GetRenderViewHost(); 1994 RenderViewHost* host = GetRenderViewHost();
1997 int id = StartDownload(host, url, is_favicon, image_size); 1995 int id = StartDownload(host, url, is_favicon, image_size);
1998 favicon_download_map_[id] = callback; 1996 favicon_download_map_[id] = callback;
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
3467 } 3465 }
3468 3466
3469 BrowserPluginGuestManager* 3467 BrowserPluginGuestManager*
3470 WebContentsImpl::GetBrowserPluginGuestManager() const { 3468 WebContentsImpl::GetBrowserPluginGuestManager() const {
3471 return static_cast<BrowserPluginGuestManager*>( 3469 return static_cast<BrowserPluginGuestManager*>(
3472 GetBrowserContext()->GetUserData( 3470 GetBrowserContext()->GetUserData(
3473 browser_plugin::kBrowserPluginGuestManagerKeyName)); 3471 browser_plugin::kBrowserPluginGuestManagerKeyName));
3474 } 3472 }
3475 3473
3476 } // namespace content 3474 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698