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

Side by Side Diff: third_party/WebKit/Source/core/page/ChromeClient.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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, 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 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 21 matching lines...) Expand all
32 #include "platform/HostWindow.h" 32 #include "platform/HostWindow.h"
33 #include "platform/PopupMenu.h" 33 #include "platform/PopupMenu.h"
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "platform/scroll/ScrollTypes.h" 35 #include "platform/scroll/ScrollTypes.h"
36 #include "platform/v8_inspector/public/ConsoleTypes.h" 36 #include "platform/v8_inspector/public/ConsoleTypes.h"
37 #include "public/platform/BlameContext.h" 37 #include "public/platform/BlameContext.h"
38 #include "public/platform/WebDragOperation.h" 38 #include "public/platform/WebDragOperation.h"
39 #include "public/platform/WebEventListenerProperties.h" 39 #include "public/platform/WebEventListenerProperties.h"
40 #include "public/platform/WebFocusType.h" 40 #include "public/platform/WebFocusType.h"
41 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
42 #include "wtf/PassOwnPtr.h"
42 #include "wtf/Vector.h" 43 #include "wtf/Vector.h"
43 #include <memory>
44 44
45 namespace blink { 45 namespace blink {
46 46
47 class AXObject; 47 class AXObject;
48 class ColorChooser; 48 class ColorChooser;
49 class ColorChooserClient; 49 class ColorChooserClient;
50 class CompositorAnimationTimeline; 50 class CompositorAnimationTimeline;
51 class CompositorProxyClient; 51 class CompositorProxyClient;
52 class DateTimeChooser; 52 class DateTimeChooser;
53 class DateTimeChooserClient; 53 class DateTimeChooserClient;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 virtual CompositorProxyClient* createCompositorProxyClient(LocalFrame*) = 0; 273 virtual CompositorProxyClient* createCompositorProxyClient(LocalFrame*) = 0;
274 274
275 virtual FloatSize elasticOverscroll() const { return FloatSize(); } 275 virtual FloatSize elasticOverscroll() const { return FloatSize(); }
276 276
277 // Called when observed XHR, fetch, and other fetch request with non-GET 277 // Called when observed XHR, fetch, and other fetch request with non-GET
278 // method is initiated from javascript. At this time, it is not guaranteed 278 // method is initiated from javascript. At this time, it is not guaranteed
279 // that this is comprehensive. 279 // that this is comprehensive.
280 virtual void didObserveNonGetFetchFromScript() const {} 280 virtual void didObserveNonGetFetchFromScript() const {}
281 281
282 virtual std::unique_ptr<WebFrameScheduler> createFrameScheduler(BlameContext *) = 0; 282 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) = 0;
283 283
284 // Returns the time of the beginning of the last beginFrame, in seconds, if any, and 0.0 otherwise. 284 // Returns the time of the beginning of the last beginFrame, in seconds, if any, and 0.0 otherwise.
285 virtual double lastFrameTimeMonotonic() const { return 0.0; } 285 virtual double lastFrameTimeMonotonic() const { return 0.0; }
286 286
287 protected: 287 protected:
288 ~ChromeClient() override { } 288 ~ChromeClient() override { }
289 289
290 virtual void showMouseOverURL(const HitTestResult&) = 0; 290 virtual void showMouseOverURL(const HitTestResult&) = 0;
291 virtual void setWindowRect(const IntRect&) = 0; 291 virtual void setWindowRect(const IntRect&) = 0;
292 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload ) = 0; 292 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload ) = 0;
293 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; 293 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0;
294 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; 294 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0;
295 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0; 295 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0;
296 virtual void printDelegate(LocalFrame*) = 0; 296 virtual void printDelegate(LocalFrame*) = 0;
297 297
298 private: 298 private:
299 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message); 299 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message);
300 void setToolTip(const HitTestResult&); 300 void setToolTip(const HitTestResult&);
301 301
302 LayoutPoint m_lastToolTipPoint; 302 LayoutPoint m_lastToolTipPoint;
303 String m_lastToolTipText; 303 String m_lastToolTipText;
304 304
305 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 305 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
306 }; 306 };
307 307
308 } // namespace blink 308 } // namespace blink
309 309
310 #endif // ChromeClient_h 310 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698