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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 /* 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 : m_webView(webView) 161 : m_webView(webView)
162 , m_cursorOverridden(false) 162 , m_cursorOverridden(false)
163 , m_didRequestNonEmptyToolTip(false) 163 , m_didRequestNonEmptyToolTip(false)
164 { 164 {
165 } 165 }
166 166
167 ChromeClientImpl::~ChromeClientImpl() 167 ChromeClientImpl::~ChromeClientImpl()
168 { 168 {
169 } 169 }
170 170
171 PassOwnPtrWillBeRawPtr<ChromeClientImpl> ChromeClientImpl::create(WebViewImpl* w ebView) 171 RawPtr<ChromeClientImpl> ChromeClientImpl::create(WebViewImpl* webView)
172 { 172 {
173 return adoptPtrWillBeNoop(new ChromeClientImpl(webView)); 173 return new ChromeClientImpl(webView);
174 } 174 }
175 175
176 void* ChromeClientImpl::webView() const 176 void* ChromeClientImpl::webView() const
177 { 177 {
178 return static_cast<void*>(m_webView); 178 return static_cast<void*>(m_webView);
179 } 179 }
180 180
181 void ChromeClientImpl::chromeDestroyed() 181 void ChromeClientImpl::chromeDestroyed()
182 { 182 {
183 // Our lifetime is bound to the WebViewImpl. 183 // Our lifetime is bound to the WebViewImpl.
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 { 650 {
651 m_webView->updatePageDefinedViewportConstraints(description); 651 m_webView->updatePageDefinedViewportConstraints(description);
652 } 652 }
653 653
654 void ChromeClientImpl::printDelegate(LocalFrame* frame) 654 void ChromeClientImpl::printDelegate(LocalFrame* frame)
655 { 655 {
656 if (m_webView->client()) 656 if (m_webView->client())
657 m_webView->client()->printPage(WebLocalFrameImpl::fromFrame(frame)); 657 m_webView->client()->printPage(WebLocalFrameImpl::fromFrame(frame));
658 } 658 }
659 659
660 PassOwnPtrWillBeRawPtr<ColorChooser> ChromeClientImpl::openColorChooser(LocalFra me* frame, ColorChooserClient* chooserClient, const Color&) 660 RawPtr<ColorChooser> ChromeClientImpl::openColorChooser(LocalFrame* frame, Color ChooserClient* chooserClient, const Color&)
661 { 661 {
662 notifyPopupOpeningObservers(); 662 notifyPopupOpeningObservers();
663 OwnPtrWillBeRawPtr<ColorChooserUIController> controller = nullptr; 663 RawPtr<ColorChooserUIController> controller = nullptr;
664 if (RuntimeEnabledFeatures::pagePopupEnabled()) 664 if (RuntimeEnabledFeatures::pagePopupEnabled())
665 controller = ColorChooserPopupUIController::create(frame, this, chooserC lient); 665 controller = ColorChooserPopupUIController::create(frame, this, chooserC lient);
666 else 666 else
667 controller = ColorChooserUIController::create(frame, chooserClient); 667 controller = ColorChooserUIController::create(frame, chooserClient);
668 controller->openUI(); 668 controller->openUI();
669 return controller.release(); 669 return controller.release();
670 } 670 }
671 671
672 PassRefPtrWillBeRawPtr<DateTimeChooser> ChromeClientImpl::openDateTimeChooser(Da teTimeChooserClient* pickerClient, const DateTimeChooserParameters& parameters) 672 RawPtr<DateTimeChooser> ChromeClientImpl::openDateTimeChooser(DateTimeChooserCli ent* pickerClient, const DateTimeChooserParameters& parameters)
673 { 673 {
674 notifyPopupOpeningObservers(); 674 notifyPopupOpeningObservers();
675 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 675 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
676 return DateTimeChooserImpl::create(this, pickerClient, parameters); 676 return DateTimeChooserImpl::create(this, pickerClient, parameters);
677 #else 677 #else
678 return ExternalDateTimeChooser::create(this, m_webView->client(), pickerClie nt, parameters); 678 return ExternalDateTimeChooser::create(this, m_webView->client(), pickerClie nt, parameters);
679 #endif 679 #endif
680 } 680 }
681 681
682 void ChromeClientImpl::openFileChooser(LocalFrame* frame, PassRefPtr<FileChooser > fileChooser) 682 void ChromeClientImpl::openFileChooser(LocalFrame* frame, PassRefPtr<FileChooser > fileChooser)
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 void ChromeClientImpl::updateCompositedSelection(const CompositedSelection& sele ction) 869 void ChromeClientImpl::updateCompositedSelection(const CompositedSelection& sele ction)
870 { 870 {
871 m_webView->updateCompositedSelection(WebSelection(selection)); 871 m_webView->updateCompositedSelection(WebSelection(selection));
872 } 872 }
873 873
874 bool ChromeClientImpl::hasOpenedPopup() const 874 bool ChromeClientImpl::hasOpenedPopup() const
875 { 875 {
876 return m_webView->hasOpenedPopup(); 876 return m_webView->hasOpenedPopup();
877 } 877 }
878 878
879 PassRefPtrWillBeRawPtr<PopupMenu> ChromeClientImpl::openPopupMenu(LocalFrame& fr ame, HTMLSelectElement& select) 879 RawPtr<PopupMenu> ChromeClientImpl::openPopupMenu(LocalFrame& frame, HTMLSelectE lement& select)
880 { 880 {
881 notifyPopupOpeningObservers(); 881 notifyPopupOpeningObservers();
882 if (WebViewImpl::useExternalPopupMenus()) 882 if (WebViewImpl::useExternalPopupMenus())
883 return adoptRefWillBeNoop(new ExternalPopupMenu(frame, select, *m_webVie w)); 883 return new ExternalPopupMenu(frame, select, *m_webView);
884 884
885 ASSERT(RuntimeEnabledFeatures::pagePopupEnabled()); 885 ASSERT(RuntimeEnabledFeatures::pagePopupEnabled());
886 return PopupMenuImpl::create(this, select); 886 return PopupMenuImpl::create(this, select);
887 } 887 }
888 888
889 PagePopup* ChromeClientImpl::openPagePopup(PagePopupClient* client) 889 PagePopup* ChromeClientImpl::openPagePopup(PagePopupClient* client)
890 { 890 {
891 return m_webView->openPagePopup(client); 891 return m_webView->openPagePopup(client);
892 } 892 }
893 893
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 { 953 {
954 return m_webView->requestPointerUnlock(); 954 return m_webView->requestPointerUnlock();
955 } 955 }
956 956
957 void ChromeClientImpl::annotatedRegionsChanged() 957 void ChromeClientImpl::annotatedRegionsChanged()
958 { 958 {
959 if (WebViewClient* client = m_webView->client()) 959 if (WebViewClient* client = m_webView->client())
960 client->draggableRegionsChanged(); 960 client->draggableRegionsChanged();
961 } 961 }
962 962
963 void ChromeClientImpl::didAssociateFormControls(const WillBeHeapVector<RefPtrWil lBeMember<Element>>& elements, LocalFrame* frame) 963 void ChromeClientImpl::didAssociateFormControls(const HeapVector<Member<Element> >& elements, LocalFrame* frame)
964 { 964 {
965 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); 965 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame);
966 if (webframe->autofillClient()) 966 if (webframe->autofillClient())
967 webframe->autofillClient()->didAssociateFormControls(elements); 967 webframe->autofillClient()->didAssociateFormControls(elements);
968 } 968 }
969 969
970 void ChromeClientImpl::didCancelCompositionOnSelectionChange() 970 void ChromeClientImpl::didCancelCompositionOnSelectionChange()
971 { 971 {
972 if (m_webView->client()) 972 if (m_webView->client())
973 m_webView->client()->didCancelCompositionOnSelectionChange(); 973 m_webView->client()->didCancelCompositionOnSelectionChange();
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 if (m_webView->pageImportanceSignals()) 1089 if (m_webView->pageImportanceSignals())
1090 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); 1090 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript();
1091 } 1091 }
1092 1092
1093 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler() 1093 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler()
1094 { 1094 {
1095 return m_webView->scheduler()->createFrameScheduler().release(); 1095 return m_webView->scheduler()->createFrameScheduler().release();
1096 } 1096 }
1097 1097
1098 } // namespace blink 1098 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/ColorChooserPopupUIController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698