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

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

Issue 26434002: Cleanup: Add more conversion helpers for usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698