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

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

Issue 1911273002: Don't restart the ImageQualityController timer unless it is already half over. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 269
270 virtual FloatSize elasticOverscroll() const { return FloatSize(); } 270 virtual FloatSize elasticOverscroll() const { return FloatSize(); }
271 271
272 // Called when observed XHR, fetch, and other fetch request with non-GET 272 // Called when observed XHR, fetch, and other fetch request with non-GET
273 // method is initiated from javascript. At this time, it is not guaranteed 273 // method is initiated from javascript. At this time, it is not guaranteed
274 // that this is comprehensive. 274 // that this is comprehensive.
275 virtual void didObserveNonGetFetchFromScript() const {} 275 virtual void didObserveNonGetFetchFromScript() const {}
276 276
277 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) = 0; 277 virtual PassOwnPtr<WebFrameScheduler> createFrameScheduler(BlameContext*) = 0;
278 278
279 // Returns the time of the beginning of the last beginFrame, in seconds, if any, and 0.0 otherwise.
280 virtual double lastFrameTimeMonotonic() const { return 0.0; }
281
279 protected: 282 protected:
280 ~ChromeClient() override { } 283 ~ChromeClient() override { }
281 284
282 virtual void showMouseOverURL(const HitTestResult&) = 0; 285 virtual void showMouseOverURL(const HitTestResult&) = 0;
283 virtual void setWindowRect(const IntRect&) = 0; 286 virtual void setWindowRect(const IntRect&) = 0;
284 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload ) = 0; 287 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, bool isReload ) = 0;
285 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; 288 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0;
286 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; 289 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0;
287 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0; 290 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0;
288 virtual void printDelegate(LocalFrame*) = 0; 291 virtual void printDelegate(LocalFrame*) = 0;
289 292
290 private: 293 private:
291 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message); 294 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message);
292 void setToolTip(const HitTestResult&); 295 void setToolTip(const HitTestResult&);
293 296
294 LayoutPoint m_lastToolTipPoint; 297 LayoutPoint m_lastToolTipPoint;
295 String m_lastToolTipText; 298 String m_lastToolTipText;
296 299
297 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 300 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
298 }; 301 };
299 302
300 } // namespace blink 303 } // namespace blink
301 304
302 #endif // ChromeClient_h 305 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp ('k') | third_party/WebKit/Source/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698