Chromium Code Reviews| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 210 | 210 |
| 211 virtual void registerProtocolHandler(const String& scheme, const String& bas eURL, const String& url, const String& title) OVERRIDE; | 211 virtual void registerProtocolHandler(const String& scheme, const String& bas eURL, const String& url, const String& title) OVERRIDE; |
| 212 | 212 |
| 213 private: | 213 private: |
| 214 explicit NavigatorContentUtilsClientImpl(WebViewImpl*); | 214 explicit NavigatorContentUtilsClientImpl(WebViewImpl*); |
| 215 | 215 |
| 216 WebViewImpl* m_webView; | 216 WebViewImpl* m_webView; |
| 217 }; | 217 }; |
| 218 #endif | 218 #endif |
| 219 | 219 |
| 220 inline ChromeClientImpl* toChromeClientImpl(WebCore::ChromeClient* client) | |
| 221 { | |
| 222 // 1. The client returned by Page::client() is a reference, hence never null . | |
| 223 // 2. There is no other class derived from ChromeClient other than ChromeCli entImpl. | |
|
tkent
2013/10/08 05:24:04
It's incorrect. AFAIK, we have EmptyChromeClient,
| |
| 224 // Hence, we don't need ASSERT here to check for either of the conditions. | |
| 225 return static_cast<ChromeClientImpl*>(client); | |
| 226 } | |
| 227 | |
| 220 } // namespace WebKit | 228 } // namespace WebKit |
| 221 | 229 |
| 222 #endif | 230 #endif |
| OLD | NEW |