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

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

Issue 2644653003: Make OffscreenCanvas animation in sync with its placeholder canvas's parent frame rate (Closed)
Patch Set: safeguard Created 3 years, 11 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 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 class IntRect; 65 class IntRect;
66 class KeyboardEvent; 66 class KeyboardEvent;
67 class LocalFrame; 67 class LocalFrame;
68 class Node; 68 class Node;
69 class Page; 69 class Page;
70 class PopupOpeningObserver; 70 class PopupOpeningObserver;
71 class WebDragData; 71 class WebDragData;
72 class WebFrameScheduler; 72 class WebFrameScheduler;
73 class WebImage; 73 class WebImage;
74 class WebLayer; 74 class WebLayer;
75 class WebLayerTreeView;
75 76
76 struct CompositedSelection; 77 struct CompositedSelection;
77 struct DateTimeChooserParameters; 78 struct DateTimeChooserParameters;
78 struct FrameLoadRequest; 79 struct FrameLoadRequest;
79 struct ViewportDescription; 80 struct ViewportDescription;
80 struct WebPoint; 81 struct WebPoint;
81 struct WebScreenInfo; 82 struct WebScreenInfo;
82 struct WindowFeatures; 83 struct WindowFeatures;
83 84
84 class CORE_EXPORT ChromeClient : public HostWindow { 85 class CORE_EXPORT ChromeClient : public HostWindow {
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 336
336 virtual std::unique_ptr<WebFrameScheduler> createFrameScheduler( 337 virtual std::unique_ptr<WebFrameScheduler> createFrameScheduler(
337 BlameContext*) = 0; 338 BlameContext*) = 0;
338 339
339 // Returns the time of the beginning of the last beginFrame, in seconds, if 340 // Returns the time of the beginning of the last beginFrame, in seconds, if
340 // any, and 0.0 otherwise. 341 // any, and 0.0 otherwise.
341 virtual double lastFrameTimeMonotonic() const { return 0.0; } 342 virtual double lastFrameTimeMonotonic() const { return 0.0; }
342 343
343 virtual void installSupplements(LocalFrame&) {} 344 virtual void installSupplements(LocalFrame&) {}
344 345
346 virtual WebLayerTreeView* getWebLayerTreeView() { return nullptr; }
347
345 DECLARE_TRACE(); 348 DECLARE_TRACE();
346 349
347 protected: 350 protected:
348 ~ChromeClient() override {} 351 ~ChromeClient() override {}
349 352
350 virtual void showMouseOverURL(const HitTestResult&) = 0; 353 virtual void showMouseOverURL(const HitTestResult&) = 0;
351 virtual void setWindowRect(const IntRect&, LocalFrame&) = 0; 354 virtual void setWindowRect(const IntRect&, LocalFrame&) = 0;
352 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, 355 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*,
353 bool isReload) = 0; 356 bool isReload) = 0;
354 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; 357 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0;
(...skipping 13 matching lines...) Expand all
368 WeakMember<Node> m_lastMouseOverNode; 371 WeakMember<Node> m_lastMouseOverNode;
369 LayoutPoint m_lastToolTipPoint; 372 LayoutPoint m_lastToolTipPoint;
370 String m_lastToolTipText; 373 String m_lastToolTipText;
371 374
372 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 375 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
373 }; 376 };
374 377
375 } // namespace blink 378 } // namespace blink
376 379
377 #endif // ChromeClient_h 380 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698