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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2128563002: Move scheduleAnimation calls from WebViewClient to WebWidgetClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // Returns the input event we're currently processing. This is used in some 418 // Returns the input event we're currently processing. This is used in some
419 // cases where the WebCore DOM event doesn't have the information we need. 419 // cases where the WebCore DOM event doesn't have the information we need.
420 static const WebInputEvent* currentInputEvent() 420 static const WebInputEvent* currentInputEvent()
421 { 421 {
422 return m_currentInputEvent; 422 return m_currentInputEvent;
423 } 423 }
424 424
425 GraphicsLayer* rootGraphicsLayer(); 425 GraphicsLayer* rootGraphicsLayer();
426 void registerViewportLayersWithCompositor(); 426 void registerViewportLayersWithCompositor();
427 PaintLayerCompositor* compositor() const; 427 PaintLayerCompositor* compositor() const;
428 void scheduleAnimation();
429 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH ighlightsTimeline.get(); } 428 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH ighlightsTimeline.get(); }
430 429
431 WebViewScheduler* scheduler() const override; 430 WebViewScheduler* scheduler() const override;
432 void setVisibilityState(WebPageVisibilityState, bool) override; 431 void setVisibilityState(WebPageVisibilityState, bool) override;
433 432
434 bool hasOpenedPopup() const { return m_pagePopup.get(); } 433 bool hasOpenedPopup() const { return m_pagePopup.get(); }
435 434
436 // Returns true if the event leads to scrolling. 435 // Returns true if the event leads to scrolling.
437 static bool mapKeyCodeForScroll( 436 static bool mapKeyCodeForScroll(
438 int keyCode, 437 int keyCode,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 void refreshPageScaleFactorAfterLayout(); 531 void refreshPageScaleFactorAfterLayout();
533 IntSize contentsSize() const; 532 IntSize contentsSize() const;
534 533
535 void performResize(); 534 void performResize();
536 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo ntrolsShrinkLayout); 535 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo ntrolsShrinkLayout);
537 536
538 // Overrides the compositor visibility. See the description of 537 // Overrides the compositor visibility. See the description of
539 // m_overrideCompositorVisibility for more details. 538 // m_overrideCompositorVisibility for more details.
540 void setCompositorVisibility(bool); 539 void setCompositorVisibility(bool);
541 540
541 // TODO(lfg): Remove once WebViewFrameWidget is deleted.
542 void scheduleAnimationForWidget();
543
542 friend class WebView; // So WebView::Create can call our constructor 544 friend class WebView; // So WebView::Create can call our constructor
543 friend class WebViewFrameWidget; 545 friend class WebViewFrameWidget;
544 friend class WTF::RefCounted<WebViewImpl>; 546 friend class WTF::RefCounted<WebViewImpl>;
545 friend void setCurrentInputEventForTest(const WebInputEvent*); 547 friend void setCurrentInputEventForTest(const WebInputEvent*);
546 548
547 enum DragAction { 549 enum DragAction {
548 DragEnter, 550 DragEnter,
549 DragOver 551 DragOver
550 }; 552 };
551 553
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 bool m_overrideCompositorVisibility; 775 bool m_overrideCompositorVisibility;
774 }; 776 };
775 777
776 // We have no ways to check if the specified WebView is an instance of 778 // We have no ways to check if the specified WebView is an instance of
777 // WebViewImpl because WebViewImpl is the only implementation of WebView. 779 // WebViewImpl because WebViewImpl is the only implementation of WebView.
778 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
779 781
780 } // namespace blink 782 } // namespace blink
781 783
782 #endif 784 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewFrameWidget.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698