OLD | NEW |
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 #include "web/ExternalDateTimeChooser.h" | 96 #include "web/ExternalDateTimeChooser.h" |
97 #include "web/ExternalPopupMenu.h" | 97 #include "web/ExternalPopupMenu.h" |
98 #include "web/PopupMenuImpl.h" | 98 #include "web/PopupMenuImpl.h" |
99 #include "web/WebFileChooserCompletionImpl.h" | 99 #include "web/WebFileChooserCompletionImpl.h" |
100 #include "web/WebFrameWidgetImpl.h" | 100 #include "web/WebFrameWidgetImpl.h" |
101 #include "web/WebInputEventConversion.h" | 101 #include "web/WebInputEventConversion.h" |
102 #include "web/WebLocalFrameImpl.h" | 102 #include "web/WebLocalFrameImpl.h" |
103 #include "web/WebPluginContainerImpl.h" | 103 #include "web/WebPluginContainerImpl.h" |
104 #include "web/WebSettingsImpl.h" | 104 #include "web/WebSettingsImpl.h" |
105 #include "web/WebViewImpl.h" | 105 #include "web/WebViewImpl.h" |
106 #include "wtf/PtrUtil.h" | |
107 #include "wtf/text/CString.h" | 106 #include "wtf/text/CString.h" |
108 #include "wtf/text/CharacterNames.h" | 107 #include "wtf/text/CharacterNames.h" |
109 #include "wtf/text/StringBuilder.h" | 108 #include "wtf/text/StringBuilder.h" |
110 #include "wtf/text/StringConcatenate.h" | 109 #include "wtf/text/StringConcatenate.h" |
111 #include <memory> | |
112 | 110 |
113 namespace blink { | 111 namespace blink { |
114 | 112 |
115 namespace { | 113 namespace { |
116 | 114 |
117 const char* dialogTypeToString(ChromeClient::DialogType dialogType) | 115 const char* dialogTypeToString(ChromeClient::DialogType dialogType) |
118 { | 116 { |
119 switch (dialogType) { | 117 switch (dialogType) { |
120 case ChromeClient::AlertDialog: | 118 case ChromeClient::AlertDialog: |
121 return "alert"; | 119 return "alert"; |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 { | 1106 { |
1109 return m_webView->elasticOverscroll(); | 1107 return m_webView->elasticOverscroll(); |
1110 } | 1108 } |
1111 | 1109 |
1112 void ChromeClientImpl::didObserveNonGetFetchFromScript() const | 1110 void ChromeClientImpl::didObserveNonGetFetchFromScript() const |
1113 { | 1111 { |
1114 if (m_webView->pageImportanceSignals()) | 1112 if (m_webView->pageImportanceSignals()) |
1115 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); | 1113 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); |
1116 } | 1114 } |
1117 | 1115 |
1118 std::unique_ptr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler(BlameC
ontext* blameContext) | 1116 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler(BlameContex
t* blameContext) |
1119 { | 1117 { |
1120 return wrapUnique(m_webView->scheduler()->createFrameScheduler(blameContext)
.release()); | 1118 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r
elease()); |
1121 } | 1119 } |
1122 | 1120 |
1123 double ChromeClientImpl::lastFrameTimeMonotonic() const | 1121 double ChromeClientImpl::lastFrameTimeMonotonic() const |
1124 { | 1122 { |
1125 return m_webView->lastFrameTimeMonotonic(); | 1123 return m_webView->lastFrameTimeMonotonic(); |
1126 } | 1124 } |
1127 | 1125 |
1128 } // namespace blink | 1126 } // namespace blink |
OLD | NEW |