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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 , m_scrollbarsVisible(true) | 155 , m_scrollbarsVisible(true) |
156 , m_menubarVisible(true) | 156 , m_menubarVisible(true) |
157 , m_resizable(true) | 157 , m_resizable(true) |
158 { | 158 { |
159 } | 159 } |
160 | 160 |
161 ChromeClientImpl::~ChromeClientImpl() | 161 ChromeClientImpl::~ChromeClientImpl() |
162 { | 162 { |
163 } | 163 } |
164 | 164 |
| 165 void* ChromeClientImpl::webView() const |
| 166 { |
| 167 return static_cast<void*>(m_webView); |
| 168 } |
| 169 |
165 void ChromeClientImpl::chromeDestroyed() | 170 void ChromeClientImpl::chromeDestroyed() |
166 { | 171 { |
167 // Our lifetime is bound to the WebViewImpl. | 172 // Our lifetime is bound to the WebViewImpl. |
168 } | 173 } |
169 | 174 |
170 void ChromeClientImpl::setWindowRect(const FloatRect& r) | 175 void ChromeClientImpl::setWindowRect(const FloatRect& r) |
171 { | 176 { |
172 if (m_webView->client()) | 177 if (m_webView->client()) |
173 m_webView->client()->setWindowRect(IntRect(r)); | 178 m_webView->client()->setWindowRect(IntRect(r)); |
174 } | 179 } |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 { | 926 { |
922 return adoptRef(new SearchPopupMenuChromium(client)); | 927 return adoptRef(new SearchPopupMenuChromium(client)); |
923 } | 928 } |
924 | 929 |
925 void ChromeClientImpl::willRunModalDialogDuringPageDismissal(const DialogType& d
ialogType) const | 930 void ChromeClientImpl::willRunModalDialogDuringPageDismissal(const DialogType& d
ialogType) const |
926 { | 931 { |
927 PlatformBridge::histogramEnumeration("Renderer.ModalDialogsDuringPageDismiss
al", static_cast<int>(dialogType), static_cast<int>(NumDialogTypes)); | 932 PlatformBridge::histogramEnumeration("Renderer.ModalDialogsDuringPageDismiss
al", static_cast<int>(dialogType), static_cast<int>(NumDialogTypes)); |
928 } | 933 } |
929 | 934 |
930 } // namespace WebKit | 935 } // namespace WebKit |
OLD | NEW |