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

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

Issue 2063773002: Reland: WTF: Implement explicit RefPtr::operator bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 void setRootGraphicsLayer(GraphicsLayer*); 430 void setRootGraphicsLayer(GraphicsLayer*);
431 PaintLayerCompositor* compositor() const; 431 PaintLayerCompositor* compositor() const;
432 void scheduleAnimation(); 432 void scheduleAnimation();
433 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*); 433 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*);
434 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); 434 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*);
435 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH ighlightsTimeline.get(); } 435 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH ighlightsTimeline.get(); }
436 436
437 WebViewScheduler* scheduler() const override; 437 WebViewScheduler* scheduler() const override;
438 void setVisibilityState(WebPageVisibilityState, bool) override; 438 void setVisibilityState(WebPageVisibilityState, bool) override;
439 439
440 bool hasOpenedPopup() const { return m_pagePopup; } 440 bool hasOpenedPopup() const { return m_pagePopup.get(); }
441 441
442 // Returns true if the event leads to scrolling. 442 // Returns true if the event leads to scrolling.
443 static bool mapKeyCodeForScroll( 443 static bool mapKeyCodeForScroll(
444 int keyCode, 444 int keyCode,
445 ScrollDirectionPhysical*, 445 ScrollDirectionPhysical*,
446 ScrollGranularity*); 446 ScrollGranularity*);
447 447
448 // Called by a full frame plugin inside this view to inform it that its 448 // Called by a full frame plugin inside this view to inform it that its
449 // zoom level has been updated. The plugin should only call this function 449 // zoom level has been updated. The plugin should only call this function
450 // if the zoom change was triggered by the browser, it's only needed in case 450 // if the zoom change was triggered by the browser, it's only needed in case
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 double m_lastFrameTimeMonotonic; 761 double m_lastFrameTimeMonotonic;
762 }; 762 };
763 763
764 // We have no ways to check if the specified WebView is an instance of 764 // We have no ways to check if the specified WebView is an instance of
765 // WebViewImpl because WebViewImpl is the only implementation of WebView. 765 // WebViewImpl because WebViewImpl is the only implementation of WebView.
766 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 766 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
767 767
768 } // namespace blink 768 } // namespace blink
769 769
770 #endif 770 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp ('k') | third_party/WebKit/Source/wtf/PassRefPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698