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

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

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 29 matching lines...) Expand all
40 namespace blink { 40 namespace blink {
41 41
42 class PagePopup; 42 class PagePopup;
43 class PagePopupClient; 43 class PagePopupClient;
44 class WebViewImpl; 44 class WebViewImpl;
45 struct WebCursorInfo; 45 struct WebCursorInfo;
46 46
47 // Handles window-level notifications from core on behalf of a WebView. 47 // Handles window-level notifications from core on behalf of a WebView.
48 class ChromeClientImpl final : public ChromeClient { 48 class ChromeClientImpl final : public ChromeClient {
49 public: 49 public:
50 static PassOwnPtrWillBeRawPtr<ChromeClientImpl> create(WebViewImpl*); 50 static RawPtr<ChromeClientImpl> create(WebViewImpl*);
51 ~ChromeClientImpl() override; 51 ~ChromeClientImpl() override;
52 52
53 void* webView() const override; 53 void* webView() const override;
54 54
55 // ChromeClient methods: 55 // ChromeClient methods:
56 void chromeDestroyed() override; 56 void chromeDestroyed() override;
57 void setWindowRect(const IntRect&) override; 57 void setWindowRect(const IntRect&) override;
58 IntRect windowRect() override; 58 IntRect windowRect() override;
59 IntRect pageRect() override; 59 IntRect pageRect() override;
60 void focus() override; 60 void focus() override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 WebScreenInfo screenInfo() const override; 98 WebScreenInfo screenInfo() const override;
99 void contentsSizeChanged(LocalFrame*, const IntSize&) const override; 99 void contentsSizeChanged(LocalFrame*, const IntSize&) const override;
100 void pageScaleFactorChanged() const override; 100 void pageScaleFactorChanged() const override;
101 float clampPageScaleFactorToLimits(float scale) const override; 101 float clampPageScaleFactorToLimits(float scale) const override;
102 void layoutUpdated(LocalFrame*) const override; 102 void layoutUpdated(LocalFrame*) const override;
103 void showMouseOverURL(const HitTestResult&) override; 103 void showMouseOverURL(const HitTestResult&) override;
104 void setToolTip(const String& tooltipText, TextDirection) override; 104 void setToolTip(const String& tooltipText, TextDirection) override;
105 void dispatchViewportPropertiesDidChange(const ViewportDescription&) const o verride; 105 void dispatchViewportPropertiesDidChange(const ViewportDescription&) const o verride;
106 void printDelegate(LocalFrame*) override; 106 void printDelegate(LocalFrame*) override;
107 void annotatedRegionsChanged() override; 107 void annotatedRegionsChanged() override;
108 PassOwnPtrWillBeRawPtr<ColorChooser> openColorChooser(LocalFrame*, ColorChoo serClient*, const Color&) override; 108 RawPtr<ColorChooser> openColorChooser(LocalFrame*, ColorChooserClient*, cons t Color&) override;
109 PassRefPtrWillBeRawPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserC lient*, const DateTimeChooserParameters&) override; 109 RawPtr<DateTimeChooser> openDateTimeChooser(DateTimeChooserClient*, const Da teTimeChooserParameters&) override;
110 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override; 110 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override;
111 void enumerateChosenDirectory(FileChooser*) override; 111 void enumerateChosenDirectory(FileChooser*) override;
112 void setCursor(const Cursor&, LocalFrame* localRoot) override; 112 void setCursor(const Cursor&, LocalFrame* localRoot) override;
113 Cursor lastSetCursorForTesting() const override; 113 Cursor lastSetCursorForTesting() const override;
114 void setEventListenerProperties(WebEventListenerClass, WebEventListenerPrope rties) override; 114 void setEventListenerProperties(WebEventListenerClass, WebEventListenerPrope rties) override;
115 WebEventListenerProperties eventListenerProperties(WebEventListenerClass) co nst override; 115 WebEventListenerProperties eventListenerProperties(WebEventListenerClass) co nst override;
116 void setHaveScrollEventHandlers(bool hasEventHandlers) override; 116 void setHaveScrollEventHandlers(bool hasEventHandlers) override;
117 bool haveScrollEventHandlers() const override; 117 bool haveScrollEventHandlers() const override;
118 void setTouchAction(TouchAction) override; 118 void setTouchAction(TouchAction) override;
119 119
(...skipping 16 matching lines...) Expand all
136 // ChromeClient methods: 136 // ChromeClient methods:
137 void postAccessibilityNotification(AXObject*, AXObjectCache::AXNotification) override; 137 void postAccessibilityNotification(AXObject*, AXObjectCache::AXNotification) override;
138 String acceptLanguages() override; 138 String acceptLanguages() override;
139 139
140 // ChromeClientImpl: 140 // ChromeClientImpl:
141 void setCursorForPlugin(const WebCursorInfo&, LocalFrame* localRoot); 141 void setCursorForPlugin(const WebCursorInfo&, LocalFrame* localRoot);
142 void setNewWindowNavigationPolicy(WebNavigationPolicy); 142 void setNewWindowNavigationPolicy(WebNavigationPolicy);
143 void setCursorOverridden(bool); 143 void setCursorOverridden(bool);
144 144
145 bool hasOpenedPopup() const override; 145 bool hasOpenedPopup() const override;
146 PassRefPtrWillBeRawPtr<PopupMenu> openPopupMenu(LocalFrame&, HTMLSelectEleme nt&) override; 146 RawPtr<PopupMenu> openPopupMenu(LocalFrame&, HTMLSelectElement&) override;
147 PagePopup* openPagePopup(PagePopupClient*); 147 PagePopup* openPagePopup(PagePopupClient*);
148 void closePagePopup(PagePopup*); 148 void closePagePopup(PagePopup*);
149 DOMWindow* pagePopupWindowForTesting() const override; 149 DOMWindow* pagePopupWindowForTesting() const override;
150 150
151 bool shouldOpenModalDialogDuringPageDismissal(const DialogType&, const Strin g& dialogMessage, Document::PageDismissalType) const override; 151 bool shouldOpenModalDialogDuringPageDismissal(const DialogType&, const Strin g& dialogMessage, Document::PageDismissalType) const override;
152 152
153 bool requestPointerLock() override; 153 bool requestPointerLock() override;
154 void requestPointerUnlock() override; 154 void requestPointerUnlock() override;
155 155
156 // AutofillClient pass throughs: 156 // AutofillClient pass throughs:
157 void didAssociateFormControls(const WillBeHeapVector<RefPtrWillBeMember<Elem ent>>&, LocalFrame*) override; 157 void didAssociateFormControls(const HeapVector<Member<Element>>&, LocalFrame *) override;
158 void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent&) overr ide; 158 void handleKeyboardEventOnTextField(HTMLInputElement&, KeyboardEvent&) overr ide;
159 void didChangeValueInTextField(HTMLFormControlElement&) override; 159 void didChangeValueInTextField(HTMLFormControlElement&) override;
160 void didEndEditingOnTextField(HTMLInputElement&) override; 160 void didEndEditingOnTextField(HTMLInputElement&) override;
161 void openTextDataListChooser(HTMLInputElement&) override; 161 void openTextDataListChooser(HTMLInputElement&) override;
162 void textFieldDataListChanged(HTMLInputElement&) override; 162 void textFieldDataListChanged(HTMLInputElement&) override;
163 void ajaxSucceeded(LocalFrame*) override; 163 void ajaxSucceeded(LocalFrame*) override;
164 164
165 void didCancelCompositionOnSelectionChange() override; 165 void didCancelCompositionOnSelectionChange() override;
166 void willSetInputMethodState() override; 166 void willSetInputMethodState() override;
167 void didUpdateTextOfFocusedElementByNonUserInput() override; 167 void didUpdateTextOfFocusedElementByNonUserInput() override;
(...skipping 27 matching lines...) Expand all
195 Cursor m_lastSetMouseCursorForTesting; 195 Cursor m_lastSetMouseCursorForTesting;
196 bool m_cursorOverridden; 196 bool m_cursorOverridden;
197 bool m_didRequestNonEmptyToolTip; 197 bool m_didRequestNonEmptyToolTip;
198 }; 198 };
199 199
200 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient Impl(), client.isChromeClientImpl()); 200 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient Impl(), client.isChromeClientImpl());
201 201
202 } // namespace blink 202 } // namespace blink
203 203
204 #endif 204 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698