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

Side by Side Diff: third_party/WebKit/Source/core/page/ChromeClient.h

Issue 1714573002: Remove the ability of webpages to specify strings for the onbeforeunload dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 9 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // that this is comprehensive. 262 // that this is comprehensive.
263 virtual void didObserveNonGetFetchFromScript() const {} 263 virtual void didObserveNonGetFetchFromScript() const {}
264 264
265 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler() = 0; 265 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler() = 0;
266 266
267 protected: 267 protected:
268 ~ChromeClient() override { } 268 ~ChromeClient() override { }
269 269
270 virtual void showMouseOverURL(const HitTestResult&) = 0; 270 virtual void showMouseOverURL(const HitTestResult&) = 0;
271 virtual void setWindowRect(const IntRect&) = 0; 271 virtual void setWindowRect(const IntRect&) = 0;
272 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String& message, bool isReload) = 0; 272 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload ) = 0;
273 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; 273 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0;
274 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; 274 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0;
275 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0; 275 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0;
276 virtual void printDelegate(LocalFrame*) = 0; 276 virtual void printDelegate(LocalFrame*) = 0;
277 277
278 private: 278 private:
279 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message); 279 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message);
280 void setToolTip(const HitTestResult&); 280 void setToolTip(const HitTestResult&);
281 281
282 LayoutPoint m_lastToolTipPoint; 282 LayoutPoint m_lastToolTipPoint;
283 String m_lastToolTipText; 283 String m_lastToolTipText;
284 284
285 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 285 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
286 }; 286 };
287 287
288 } // namespace blink 288 } // namespace blink
289 289
290 #endif // ChromeClient_h 290 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.h ('k') | third_party/WebKit/Source/core/page/ChromeClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698