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

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 23236002: Prepare for color input datalist support on Android (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/ColorChooserPopupUIController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 26 matching lines...) Expand all
37 #include "DateTimeChooserImpl.h" 37 #include "DateTimeChooserImpl.h"
38 #include "ExternalDateTimeChooser.h" 38 #include "ExternalDateTimeChooser.h"
39 #include "ExternalPopupMenu.h" 39 #include "ExternalPopupMenu.h"
40 #include "HTMLNames.h" 40 #include "HTMLNames.h"
41 #include "PopupContainer.h" 41 #include "PopupContainer.h"
42 #include "PopupMenuChromium.h" 42 #include "PopupMenuChromium.h"
43 #include "RuntimeEnabledFeatures.h" 43 #include "RuntimeEnabledFeatures.h"
44 #include "WebAXObject.h" 44 #include "WebAXObject.h"
45 #include "WebAutofillClient.h" 45 #include "WebAutofillClient.h"
46 #include "WebColorChooser.h" 46 #include "WebColorChooser.h"
47 #include "WebColorSuggestion.h"
47 #include "WebConsoleMessage.h" 48 #include "WebConsoleMessage.h"
48 #include "WebCursorInfo.h" 49 #include "WebCursorInfo.h"
49 #include "WebFileChooserCompletionImpl.h" 50 #include "WebFileChooserCompletionImpl.h"
50 #include "WebFrameClient.h" 51 #include "WebFrameClient.h"
51 #include "WebFrameImpl.h" 52 #include "WebFrameImpl.h"
52 #include "WebInputElement.h" 53 #include "WebInputElement.h"
53 #include "WebInputEvent.h" 54 #include "WebInputEvent.h"
54 #include "WebKit.h" 55 #include "WebKit.h"
55 #include "WebNode.h" 56 #include "WebNode.h"
56 #include "WebPasswordGeneratorClient.h" 57 #include "WebPasswordGeneratorClient.h"
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 PassOwnPtr<ColorChooser> ChromeClientImpl::createColorChooser(ColorChooserClient * chooserClient, const Color&) 610 PassOwnPtr<ColorChooser> ChromeClientImpl::createColorChooser(ColorChooserClient * chooserClient, const Color&)
610 { 611 {
611 OwnPtr<ColorChooserUIController> controller; 612 OwnPtr<ColorChooserUIController> controller;
612 if (RuntimeEnabledFeatures::pagePopupEnabled()) 613 if (RuntimeEnabledFeatures::pagePopupEnabled())
613 controller = adoptPtr(new ColorChooserPopupUIController(this, chooserCli ent)); 614 controller = adoptPtr(new ColorChooserPopupUIController(this, chooserCli ent));
614 else 615 else
615 controller = adoptPtr(new ColorChooserUIController(this, chooserClient)) ; 616 controller = adoptPtr(new ColorChooserUIController(this, chooserClient)) ;
616 controller->openUI(); 617 controller->openUI();
617 return controller.release(); 618 return controller.release();
618 } 619 }
619 PassOwnPtr<WebColorChooser> ChromeClientImpl::createWebColorChooser(WebColorChoo serClient* chooserClient, const WebColor& initialColor)
620 {
621 WebViewClient* client = m_webView->client();
622 if (!client)
623 return nullptr;
624 return adoptPtr(client->createColorChooser(chooserClient, initialColor));
625 }
626 620
627 PassRefPtr<DateTimeChooser> ChromeClientImpl::openDateTimeChooser(DateTimeChoose rClient* pickerClient, const DateTimeChooserParameters& parameters) 621 PassRefPtr<DateTimeChooser> ChromeClientImpl::openDateTimeChooser(DateTimeChoose rClient* pickerClient, const DateTimeChooserParameters& parameters)
628 { 622 {
629 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 623 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
630 return DateTimeChooserImpl::create(this, pickerClient, parameters); 624 return DateTimeChooserImpl::create(this, pickerClient, parameters);
631 #else 625 #else
632 return ExternalDateTimeChooser::create(this, m_webView->client(), pickerClie nt, parameters); 626 return ExternalDateTimeChooser::create(this, m_webView->client(), pickerClie nt, parameters);
633 #endif 627 #endif
634 } 628 }
635 629
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 { 994 {
1001 } 995 }
1002 996
1003 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title) 997 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title)
1004 { 998 {
1005 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); 999 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
1006 } 1000 }
1007 #endif 1001 #endif
1008 1002
1009 } // namespace blink 1003 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/ColorChooserPopupUIController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698