OLD | NEW |
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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 { | 597 { |
598 OwnPtr<ColorChooserUIController> controller; | 598 OwnPtr<ColorChooserUIController> controller; |
599 if (RuntimeEnabledFeatures::pagePopupEnabled()) | 599 if (RuntimeEnabledFeatures::pagePopupEnabled()) |
600 controller = adoptPtr(new ColorChooserPopupUIController(frame, this, cho
oserClient)); | 600 controller = adoptPtr(new ColorChooserPopupUIController(frame, this, cho
oserClient)); |
601 else | 601 else |
602 controller = adoptPtr(new ColorChooserUIController(frame, chooserClient)
); | 602 controller = adoptPtr(new ColorChooserUIController(frame, chooserClient)
); |
603 controller->openUI(); | 603 controller->openUI(); |
604 return controller.release(); | 604 return controller.release(); |
605 } | 605 } |
606 | 606 |
607 PassRefPtr<DateTimeChooser> ChromeClientImpl::openDateTimeChooser(DateTimeChoose
rClient* pickerClient, const DateTimeChooserParameters& parameters) | 607 PassRefPtrWillBeRawPtr<DateTimeChooser> ChromeClientImpl::openDateTimeChooser(Da
teTimeChooserClient* pickerClient, const DateTimeChooserParameters& parameters) |
608 { | 608 { |
609 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 609 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
610 return DateTimeChooserImpl::create(this, pickerClient, parameters); | 610 return DateTimeChooserImpl::create(this, pickerClient, parameters); |
611 #else | 611 #else |
612 return ExternalDateTimeChooser::create(this, m_webView->client(), pickerClie
nt, parameters); | 612 return ExternalDateTimeChooser::create(this, m_webView->client(), pickerClie
nt, parameters); |
613 #endif | 613 #endif |
614 } | 614 } |
615 | 615 |
616 void ChromeClientImpl::runOpenPanel(LocalFrame* frame, PassRefPtr<FileChooser> f
ileChooser) | 616 void ChromeClientImpl::runOpenPanel(LocalFrame* frame, PassRefPtr<FileChooser> f
ileChooser) |
617 { | 617 { |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); | 907 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); |
908 } | 908 } |
909 | 909 |
910 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) | 910 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) |
911 { | 911 { |
912 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); | 912 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); |
913 } | 913 } |
914 | 914 |
915 | 915 |
916 } // namespace blink | 916 } // namespace blink |
OLD | NEW |