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

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

Issue 1891473002: WTF: Implement explicit RefPtr::operator bool. (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) 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 void setRootGraphicsLayer(GraphicsLayer*); 428 void setRootGraphicsLayer(GraphicsLayer*);
429 PaintLayerCompositor* compositor() const; 429 PaintLayerCompositor* compositor() const;
430 void scheduleAnimation(); 430 void scheduleAnimation();
431 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*); 431 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*);
432 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); 432 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*);
433 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH ighlightsTimeline.get(); } 433 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH ighlightsTimeline.get(); }
434 434
435 WebViewScheduler* scheduler() const override; 435 WebViewScheduler* scheduler() const override;
436 void setVisibilityState(WebPageVisibilityState, bool) override; 436 void setVisibilityState(WebPageVisibilityState, bool) override;
437 437
438 bool hasOpenedPopup() const { return m_pagePopup; } 438 bool hasOpenedPopup() const { return m_pagePopup.get(); }
439 439
440 // Returns true if the event leads to scrolling. 440 // Returns true if the event leads to scrolling.
441 static bool mapKeyCodeForScroll( 441 static bool mapKeyCodeForScroll(
442 int keyCode, 442 int keyCode,
443 ScrollDirectionPhysical*, 443 ScrollDirectionPhysical*,
444 ScrollGranularity*); 444 ScrollGranularity*);
445 445
446 // Called by a full frame plugin inside this view to inform it that its 446 // Called by a full frame plugin inside this view to inform it that its
447 // zoom level has been updated. The plugin should only call this function 447 // zoom level has been updated. The plugin should only call this function
448 // if the zoom change was triggered by the browser, it's only needed in case 448 // if the zoom change was triggered by the browser, it's only needed in case
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 }; 755 };
756 756
757 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 757 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
758 // We have no ways to check if the specified WebView is an instance of 758 // We have no ways to check if the specified WebView is an instance of
759 // WebViewImpl because WebViewImpl is the only implementation of WebView. 759 // WebViewImpl because WebViewImpl is the only implementation of WebView.
760 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 760 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
761 761
762 } // namespace blink 762 } // namespace blink
763 763
764 #endif 764 #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