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

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 1303833002: Add WebPageImportanceSignals::issuedNonGetFetchFromScript() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: hook DocumentThreadableLoader Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 #include "web/WebFrameWidgetImpl.h" 97 #include "web/WebFrameWidgetImpl.h"
98 #include "web/WebInputEventConversion.h" 98 #include "web/WebInputEventConversion.h"
99 #include "web/WebLocalFrameImpl.h" 99 #include "web/WebLocalFrameImpl.h"
100 #include "web/WebPluginContainerImpl.h" 100 #include "web/WebPluginContainerImpl.h"
101 #include "web/WebSettingsImpl.h" 101 #include "web/WebSettingsImpl.h"
102 #include "web/WebViewImpl.h" 102 #include "web/WebViewImpl.h"
103 #include "wtf/text/CString.h" 103 #include "wtf/text/CString.h"
104 #include "wtf/text/CharacterNames.h" 104 #include "wtf/text/CharacterNames.h"
105 #include "wtf/text/StringBuilder.h" 105 #include "wtf/text/StringBuilder.h"
106 #include "wtf/text/StringConcatenate.h" 106 #include "wtf/text/StringConcatenate.h"
107 107
tyoshino (SeeGerritForStatus) 2015/09/24 08:14:11 WebPageImportanceSignals.h
kouhei (in TOK) 2015/09/25 03:22:00 Done.
108 namespace blink { 108 namespace blink {
109 109
110 class WebCompositorAnimationTimeline; 110 class WebCompositorAnimationTimeline;
111 111
112 // Converts a AXObjectCache::AXNotification to a WebAXEvent 112 // Converts a AXObjectCache::AXNotification to a WebAXEvent
113 static WebAXEvent toWebAXEvent(AXObjectCache::AXNotification notification) 113 static WebAXEvent toWebAXEvent(AXObjectCache::AXNotification notification)
114 { 114 {
115 // These enums have the same values; enforced in AssertMatchingEnums.cpp. 115 // These enums have the same values; enforced in AssertMatchingEnums.cpp.
116 return static_cast<WebAXEvent>(notification); 116 return static_cast<WebAXEvent>(notification);
117 } 117 }
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); 994 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers);
995 for (const auto& observer : observers) 995 for (const auto& observer : observers)
996 observer->willOpenPopup(); 996 observer->willOpenPopup();
997 } 997 }
998 998
999 FloatSize ChromeClientImpl::elasticOverscroll() const 999 FloatSize ChromeClientImpl::elasticOverscroll() const
1000 { 1000 {
1001 return m_webView->elasticOverscroll(); 1001 return m_webView->elasticOverscroll();
1002 } 1002 }
1003 1003
1004 void ChromeClientImpl::observedNonGetFetchFromScript() const
1005 {
1006 m_webView->pageImportanceSignals().setIssuedNonGetFetchFromScript();
1007 }
1008
1004 } // namespace blink 1009 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698