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

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: rebase again Created 3 years, 10 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 337
337 virtual std::unique_ptr<WebFrameScheduler> createFrameScheduler( 338 virtual std::unique_ptr<WebFrameScheduler> createFrameScheduler(
338 BlameContext*) = 0; 339 BlameContext*) = 0;
339 340
340 // Returns the time of the beginning of the last beginFrame, in seconds, if 341 // Returns the time of the beginning of the last beginFrame, in seconds, if
341 // any, and 0.0 otherwise. 342 // any, and 0.0 otherwise.
342 virtual double lastFrameTimeMonotonic() const { return 0.0; } 343 virtual double lastFrameTimeMonotonic() const { return 0.0; }
343 344
344 virtual void installSupplements(LocalFrame&) {} 345 virtual void installSupplements(LocalFrame&) {}
345 346
347 virtual WebLayerTreeView* getWebLayerTreeView(LocalFrame*) { return nullptr; }
348
346 DECLARE_TRACE(); 349 DECLARE_TRACE();
347 350
348 protected: 351 protected:
349 ~ChromeClient() override {} 352 ~ChromeClient() override {}
350 353
351 virtual void showMouseOverURL(const HitTestResult&) = 0; 354 virtual void showMouseOverURL(const HitTestResult&) = 0;
352 virtual void setWindowRect(const IntRect&, LocalFrame&) = 0; 355 virtual void setWindowRect(const IntRect&, LocalFrame&) = 0;
353 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, 356 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*,
354 bool isReload) = 0; 357 bool isReload) = 0;
355 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; 358 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0;
(...skipping 13 matching lines...) Expand all
369 WeakMember<Node> m_lastMouseOverNode; 372 WeakMember<Node> m_lastMouseOverNode;
370 LayoutPoint m_lastToolTipPoint; 373 LayoutPoint m_lastToolTipPoint;
371 String m_lastToolTipText; 374 String m_lastToolTipText;
372 375
373 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 376 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
374 }; 377 };
375 378
376 } // namespace blink 379 } // namespace blink
377 380
378 #endif // ChromeClient_h 381 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698