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

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, 10 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 : m_webView(webView) 123 : m_webView(webView)
124 , m_cursorOverridden(false) 124 , m_cursorOverridden(false)
125 , m_didRequestNonEmptyToolTip(false) 125 , m_didRequestNonEmptyToolTip(false)
126 { 126 {
127 } 127 }
128 128
129 ChromeClientImpl::~ChromeClientImpl() 129 ChromeClientImpl::~ChromeClientImpl()
130 { 130 {
131 } 131 }
132 132
133 PassOwnPtrWillBeRawPtr<ChromeClientImpl> ChromeClientImpl::create(WebViewImpl* w ebView) 133 RawPtr<ChromeClientImpl> ChromeClientImpl::create(WebViewImpl* webView)
134 { 134 {
135 return adoptPtrWillBeNoop(new ChromeClientImpl(webView)); 135 return (new ChromeClientImpl(webView));
136 } 136 }
137 137
138 void* ChromeClientImpl::webView() const 138 void* ChromeClientImpl::webView() const
139 { 139 {
140 return static_cast<void*>(m_webView); 140 return static_cast<void*>(m_webView);
141 } 141 }
142 142
143 void ChromeClientImpl::chromeDestroyed() 143 void ChromeClientImpl::chromeDestroyed()
144 { 144 {
145 // Our lifetime is bound to the WebViewImpl. 145 // Our lifetime is bound to the WebViewImpl.
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 { 600 {
601 m_webView->updatePageDefinedViewportConstraints(description); 601 m_webView->updatePageDefinedViewportConstraints(description);
602 } 602 }
603 603
604 void ChromeClientImpl::printDelegate(LocalFrame* frame) 604 void ChromeClientImpl::printDelegate(LocalFrame* frame)
605 { 605 {
606 if (m_webView->client()) 606 if (m_webView->client())
607 m_webView->client()->printPage(WebLocalFrameImpl::fromFrame(frame)); 607 m_webView->client()->printPage(WebLocalFrameImpl::fromFrame(frame));
608 } 608 }
609 609
610 PassOwnPtrWillBeRawPtr<ColorChooser> ChromeClientImpl::openColorChooser(LocalFra me* frame, ColorChooserClient* chooserClient, const Color&) 610 RawPtr<ColorChooser> ChromeClientImpl::openColorChooser(LocalFrame* frame, Color ChooserClient* chooserClient, const Color&)
611 { 611 {
612 notifyPopupOpeningObservers(); 612 notifyPopupOpeningObservers();
613 OwnPtrWillBeRawPtr<ColorChooserUIController> controller = nullptr; 613 RawPtr<ColorChooserUIController> controller = nullptr;
614 if (RuntimeEnabledFeatures::pagePopupEnabled()) 614 if (RuntimeEnabledFeatures::pagePopupEnabled())
615 controller = ColorChooserPopupUIController::create(frame, this, chooserC lient); 615 controller = ColorChooserPopupUIController::create(frame, this, chooserC lient);
616 else 616 else
617 controller = ColorChooserUIController::create(frame, chooserClient); 617 controller = ColorChooserUIController::create(frame, chooserClient);
618 controller->openUI(); 618 controller->openUI();
619 return controller.release(); 619 return controller.release();
620 } 620 }
621 621
622 PassRefPtrWillBeRawPtr<DateTimeChooser> ChromeClientImpl::openDateTimeChooser(Da teTimeChooserClient* pickerClient, const DateTimeChooserParameters& parameters) 622 RawPtr<DateTimeChooser> ChromeClientImpl::openDateTimeChooser(DateTimeChooserCli ent* pickerClient, const DateTimeChooserParameters& parameters)
623 { 623 {
624 notifyPopupOpeningObservers(); 624 notifyPopupOpeningObservers();
625 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 625 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
626 return DateTimeChooserImpl::create(this, pickerClient, parameters); 626 return DateTimeChooserImpl::create(this, pickerClient, parameters);
627 #else 627 #else
628 return ExternalDateTimeChooser::create(this, m_webView->client(), pickerClie nt, parameters); 628 return ExternalDateTimeChooser::create(this, m_webView->client(), pickerClie nt, parameters);
629 #endif 629 #endif
630 } 630 }
631 631
632 void ChromeClientImpl::openFileChooser(LocalFrame* frame, PassRefPtr<FileChooser > fileChooser) 632 void ChromeClientImpl::openFileChooser(LocalFrame* frame, PassRefPtr<FileChooser > fileChooser)
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 void ChromeClientImpl::updateCompositedSelection(const CompositedSelection& sele ction) 824 void ChromeClientImpl::updateCompositedSelection(const CompositedSelection& sele ction)
825 { 825 {
826 m_webView->updateCompositedSelection(WebSelection(selection)); 826 m_webView->updateCompositedSelection(WebSelection(selection));
827 } 827 }
828 828
829 bool ChromeClientImpl::hasOpenedPopup() const 829 bool ChromeClientImpl::hasOpenedPopup() const
830 { 830 {
831 return m_webView->hasOpenedPopup(); 831 return m_webView->hasOpenedPopup();
832 } 832 }
833 833
834 PassRefPtrWillBeRawPtr<PopupMenu> ChromeClientImpl::openPopupMenu(LocalFrame& fr ame, HTMLSelectElement& select) 834 RawPtr<PopupMenu> ChromeClientImpl::openPopupMenu(LocalFrame& frame, HTMLSelectE lement& select)
835 { 835 {
836 notifyPopupOpeningObservers(); 836 notifyPopupOpeningObservers();
837 if (WebViewImpl::useExternalPopupMenus()) 837 if (WebViewImpl::useExternalPopupMenus())
838 return adoptRefWillBeNoop(new ExternalPopupMenu(frame, select, *m_webVie w)); 838 return (new ExternalPopupMenu(frame, select, *m_webView));
839 839
840 ASSERT(RuntimeEnabledFeatures::pagePopupEnabled()); 840 ASSERT(RuntimeEnabledFeatures::pagePopupEnabled());
841 return PopupMenuImpl::create(this, select); 841 return PopupMenuImpl::create(this, select);
842 } 842 }
843 843
844 PagePopup* ChromeClientImpl::openPagePopup(PagePopupClient* client) 844 PagePopup* ChromeClientImpl::openPagePopup(PagePopupClient* client)
845 { 845 {
846 return m_webView->openPagePopup(client); 846 return m_webView->openPagePopup(client);
847 } 847 }
848 848
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 { 921 {
922 return m_webView->requestPointerUnlock(); 922 return m_webView->requestPointerUnlock();
923 } 923 }
924 924
925 void ChromeClientImpl::annotatedRegionsChanged() 925 void ChromeClientImpl::annotatedRegionsChanged()
926 { 926 {
927 if (WebViewClient* client = m_webView->client()) 927 if (WebViewClient* client = m_webView->client())
928 client->draggableRegionsChanged(); 928 client->draggableRegionsChanged();
929 } 929 }
930 930
931 void ChromeClientImpl::didAssociateFormControls(const WillBeHeapVector<RefPtrWil lBeMember<Element>>& elements, LocalFrame* frame) 931 void ChromeClientImpl::didAssociateFormControls(const HeapVector<Member<Element> >& elements, LocalFrame* frame)
932 { 932 {
933 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); 933 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame);
934 if (webframe->autofillClient()) 934 if (webframe->autofillClient())
935 webframe->autofillClient()->didAssociateFormControls(elements); 935 webframe->autofillClient()->didAssociateFormControls(elements);
936 } 936 }
937 937
938 void ChromeClientImpl::didCancelCompositionOnSelectionChange() 938 void ChromeClientImpl::didCancelCompositionOnSelectionChange()
939 { 939 {
940 if (m_webView->client()) 940 if (m_webView->client())
941 m_webView->client()->didCancelCompositionOnSelectionChange(); 941 m_webView->client()->didCancelCompositionOnSelectionChange();
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 if (m_webView->pageImportanceSignals()) 1057 if (m_webView->pageImportanceSignals())
1058 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); 1058 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript();
1059 } 1059 }
1060 1060
1061 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler() 1061 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler()
1062 { 1062 {
1063 return m_webView->scheduler()->createFrameScheduler().release(); 1063 return m_webView->scheduler()->createFrameScheduler().release();
1064 } 1064 }
1065 1065
1066 } // namespace blink 1066 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698