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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 ChromeClientImpl::ChromeClientImpl(WebViewImpl* webView) | 119 ChromeClientImpl::ChromeClientImpl(WebViewImpl* webView) |
120 : m_webView(webView) | 120 : m_webView(webView) |
121 { | 121 { |
122 } | 122 } |
123 | 123 |
124 ChromeClientImpl::~ChromeClientImpl() | 124 ChromeClientImpl::~ChromeClientImpl() |
125 { | 125 { |
126 } | 126 } |
127 | 127 |
| 128 PassOwnPtrWillBeRawPtr<ChromeClientImpl> ChromeClientImpl::create(WebViewImpl* w
ebView) |
| 129 { |
| 130 return adoptPtrWillBeNoop(new ChromeClientImpl(webView)); |
| 131 } |
| 132 |
128 void* ChromeClientImpl::webView() const | 133 void* ChromeClientImpl::webView() const |
129 { | 134 { |
130 return static_cast<void*>(m_webView); | 135 return static_cast<void*>(m_webView); |
131 } | 136 } |
132 | 137 |
133 void ChromeClientImpl::chromeDestroyed() | 138 void ChromeClientImpl::chromeDestroyed() |
134 { | 139 { |
135 // Our lifetime is bound to the WebViewImpl. | 140 // Our lifetime is bound to the WebViewImpl. |
136 } | 141 } |
137 | 142 |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 for (const auto& observer : observers) | 971 for (const auto& observer : observers) |
967 observer->willOpenPopup(); | 972 observer->willOpenPopup(); |
968 } | 973 } |
969 | 974 |
970 FloatSize ChromeClientImpl::elasticOverscroll() const | 975 FloatSize ChromeClientImpl::elasticOverscroll() const |
971 { | 976 { |
972 return m_webView->elasticOverscroll(); | 977 return m_webView->elasticOverscroll(); |
973 } | 978 } |
974 | 979 |
975 } // namespace blink | 980 } // namespace blink |
OLD | NEW |