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