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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 18 matching lines...) Expand all
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef ChromeClientImpl_h 32 #ifndef ChromeClientImpl_h
33 #define ChromeClientImpl_h 33 #define ChromeClientImpl_h
34 34
35 #include "core/page/ChromeClient.h" 35 #include "core/page/ChromeClient.h"
36 #include "core/page/WindowFeatures.h" 36 #include "core/page/WindowFeatures.h"
37 #include "public/web/WebNavigationPolicy.h" 37 #include "public/web/WebNavigationPolicy.h"
38 #include "web/WebExport.h" 38 #include "web/WebExport.h"
39 #include <memory> 39 #include "wtf/PassOwnPtr.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class PagePopup; 43 class PagePopup;
44 class PagePopupClient; 44 class PagePopupClient;
45 class WebViewImpl; 45 class WebViewImpl;
46 struct WebCursorInfo; 46 struct WebCursorInfo;
47 47
48 // Handles window-level notifications from core on behalf of a WebView. 48 // Handles window-level notifications from core on behalf of a WebView.
49 class WEB_EXPORT ChromeClientImpl final : public ChromeClient { 49 class WEB_EXPORT ChromeClientImpl final : public ChromeClient {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 void showUnhandledTapUIIfNeeded(IntPoint, Node*, bool) override; 178 void showUnhandledTapUIIfNeeded(IntPoint, Node*, bool) override;
179 void onMouseDown(Node*) override; 179 void onMouseDown(Node*) override;
180 void didUpdateTopControls() const override; 180 void didUpdateTopControls() const override;
181 181
182 CompositorProxyClient* createCompositorProxyClient(LocalFrame*) override; 182 CompositorProxyClient* createCompositorProxyClient(LocalFrame*) override;
183 FloatSize elasticOverscroll() const override; 183 FloatSize elasticOverscroll() const override;
184 184
185 void didObserveNonGetFetchFromScript() const override; 185 void didObserveNonGetFetchFromScript() const override;
186 186
187 std::unique_ptr<WebFrameScheduler> createFrameScheduler(BlameContext*) overr ide; 187 PassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) override;
188 188
189 double lastFrameTimeMonotonic() const override; 189 double lastFrameTimeMonotonic() const override;
190 190
191 void notifyPopupOpeningObservers() const; 191 void notifyPopupOpeningObservers() const;
192 192
193 private: 193 private:
194 explicit ChromeClientImpl(WebViewImpl*); 194 explicit ChromeClientImpl(WebViewImpl*);
195 195
196 bool isChromeClientImpl() const override { return true; } 196 bool isChromeClientImpl() const override { return true; }
197 void registerPopupOpeningObserver(PopupOpeningObserver*) override; 197 void registerPopupOpeningObserver(PopupOpeningObserver*) override;
198 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; 198 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override;
199 199
200 void setCursor(const WebCursorInfo&, LocalFrame* localRoot); 200 void setCursor(const WebCursorInfo&, LocalFrame* localRoot);
201 201
202 WebViewImpl* m_webView; // Weak pointer. 202 WebViewImpl* m_webView; // Weak pointer.
203 WindowFeatures m_windowFeatures; 203 WindowFeatures m_windowFeatures;
204 Vector<PopupOpeningObserver*> m_popupOpeningObservers; 204 Vector<PopupOpeningObserver*> m_popupOpeningObservers;
205 Cursor m_lastSetMouseCursorForTesting; 205 Cursor m_lastSetMouseCursorForTesting;
206 bool m_cursorOverridden; 206 bool m_cursorOverridden;
207 bool m_didRequestNonEmptyToolTip; 207 bool m_didRequestNonEmptyToolTip;
208 }; 208 };
209 209
210 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient Impl(), client.isChromeClientImpl()); 210 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient Impl(), client.isChromeClientImpl());
211 211
212 } // namespace blink 212 } // namespace blink
213 213
214 #endif 214 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp ('k') | third_party/WebKit/Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698