mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Replace NOTREACHED() with DCHECK(false) in generated files (see #3500)
Restores the old behavior of assertion in Debug build only.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=fd39feb52a9ace3fda3d5bfda54c4a240173f2ff$
|
||||
// $hash=909f89cc8243a1438a31bc2d5e0957c18b65a9b0$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/box_layout_cpptoc.h"
|
||||
@@ -144,7 +144,7 @@ template <>
|
||||
CefRefPtr<CefBoxLayout>
|
||||
CefCppToCRefCounted<CefBoxLayoutCppToC, CefBoxLayout, cef_box_layout_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_box_layout_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=bb9fa0045c967777df8fd84c5b6c4223f7a84592$
|
||||
// $hash=8ed7a2cd363a38cde65551fa5366085d9fa5b919$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
|
||||
@@ -47,7 +47,7 @@ CEF_EXPORT cef_browser_view_t* cef_browser_view_create(
|
||||
return NULL;
|
||||
}
|
||||
if (!template_util::has_valid_size(settings)) {
|
||||
NOTREACHED() << "invalid settings->[base.]size";
|
||||
DCHECK(false) << "invalid settings->[base.]size";
|
||||
return NULL;
|
||||
}
|
||||
// Unverified params: client, url, extra_info, request_context, delegate
|
||||
@@ -1284,7 +1284,7 @@ template <>
|
||||
CefRefPtr<CefBrowserView>
|
||||
CefCppToCRefCounted<CefBrowserViewCppToC, CefBrowserView, cef_browser_view_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_browser_view_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=8b92c198857b0ca5c3ddc9b2c8a82febe7ed8cde$
|
||||
// $hash=1b695e1b06a8ba626073b4a610d47c5a931a4735$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/browser_view_delegate_cpptoc.h"
|
||||
@@ -108,7 +108,7 @@ browser_view_delegate_get_delegate_for_popup_browser_view(
|
||||
return NULL;
|
||||
}
|
||||
if (!template_util::has_valid_size(settings)) {
|
||||
NOTREACHED() << "invalid settings->[base.]size";
|
||||
DCHECK(false) << "invalid settings->[base.]size";
|
||||
return NULL;
|
||||
}
|
||||
// Unverified params: client
|
||||
@@ -496,7 +496,7 @@ CefRefPtr<CefBrowserViewDelegate> CefCppToCRefCounted<
|
||||
cef_browser_view_delegate_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_browser_view_delegate_t*
|
||||
s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=5428bc6354709f7b7083f545fa0ed5c1af82470d$
|
||||
// $hash=a6162679f74abe571ba59ff3811704fdb186a414$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/button_cpptoc.h"
|
||||
@@ -1240,7 +1240,7 @@ CefCppToCRefCounted<CefButtonCppToC, CefButton, cef_button_t>::UnwrapDerived(
|
||||
if (type == WT_MENU_BUTTON) {
|
||||
return CefMenuButtonCppToC::Unwrap(reinterpret_cast<cef_menu_button_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=87511af5e1a3eebefe2fa90759274ac14cdbda62$
|
||||
// $hash=6c1d9cfcafa7425bf5530eba7be024d9d07c466b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/button_delegate_cpptoc.h"
|
||||
@@ -365,7 +365,7 @@ CefRefPtr<CefButtonDelegate> CefCppToCRefCounted<
|
||||
return CefMenuButtonDelegateCppToC::Unwrap(
|
||||
reinterpret_cast<cef_menu_button_delegate_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=c876a721fa14497054e1d3fd3bd95a09298cd774$
|
||||
// $hash=5c179b70eb51a62fd00780eaea1be9c96e3ce3b3$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/display_cpptoc.h"
|
||||
@@ -383,7 +383,7 @@ CefRefPtr<CefDisplay>
|
||||
CefCppToCRefCounted<CefDisplayCppToC, CefDisplay, cef_display_t>::UnwrapDerived(
|
||||
CefWrapperType type,
|
||||
cef_display_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=94b09cfcb27c860d91d5c36b80f84569e35c9147$
|
||||
// $hash=3107bde9f33663e0141afa3fef9051c53eac11d8$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h"
|
||||
@@ -99,7 +99,7 @@ template <>
|
||||
CefRefPtr<CefFillLayout>
|
||||
CefCppToCRefCounted<CefFillLayoutCppToC, CefFillLayout, cef_fill_layout_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_fill_layout_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=b82103e68fffd36a97aa8d9784a1f2def77a6fab$
|
||||
// $hash=44c962ffbc0ae5b8e7870d5e1845fd339196fbac$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/label_button_cpptoc.h"
|
||||
@@ -1539,7 +1539,7 @@ CefCppToCRefCounted<CefLabelButtonCppToC, CefLabelButton, cef_label_button_t>::
|
||||
if (type == WT_MENU_BUTTON) {
|
||||
return CefMenuButtonCppToC::Unwrap(reinterpret_cast<cef_menu_button_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=e8d8216333b81676768e82762ec1da35a19e62f8$
|
||||
// $hash=6369dff04489cebf256d28015e676f2a5c09f48e$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/layout_cpptoc.h"
|
||||
@@ -101,7 +101,7 @@ CefCppToCRefCounted<CefLayoutCppToC, CefLayout, cef_layout_t>::UnwrapDerived(
|
||||
if (type == WT_FILL_LAYOUT) {
|
||||
return CefFillLayoutCppToC::Unwrap(reinterpret_cast<cef_fill_layout_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=8a0e747873df46bb39ec65538eb0d6b4f1b04327$
|
||||
// $hash=c386e6143a554182ff6e4beb9e8dd813a5753a55$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/menu_button_cpptoc.h"
|
||||
@@ -1593,7 +1593,7 @@ template <>
|
||||
CefRefPtr<CefMenuButton>
|
||||
CefCppToCRefCounted<CefMenuButtonCppToC, CefMenuButton, cef_menu_button_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_menu_button_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=9758823653e71b6f40a07d1ccf051dd10e92b5b5$
|
||||
// $hash=bc673e6ca9a0a67ef0ac5b95a6618575ed79daf5$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/menu_button_delegate_cpptoc.h"
|
||||
@@ -418,7 +418,7 @@ CefRefPtr<CefMenuButtonDelegate> CefCppToCRefCounted<
|
||||
CefMenuButtonDelegate,
|
||||
cef_menu_button_delegate_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_menu_button_delegate_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=2dc6b6ba5f4b65f25877aa56083d0e6dea42e7ae$
|
||||
// $hash=b0777f496f71e5770150561ce6bbb37caff94182$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/menu_button_pressed_lock_cpptoc.h"
|
||||
@@ -31,7 +31,7 @@ CefCppToCRefCounted<CefMenuButtonPressedLockCppToC,
|
||||
CefMenuButtonPressedLock,
|
||||
cef_menu_button_pressed_lock_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_menu_button_pressed_lock_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=8ebed0f097f98544037eeebfb9b2dbf21d579f03$
|
||||
// $hash=714f6a3397b0c294cf77f23061d07c3e9b548989$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/overlay_controller_cpptoc.h"
|
||||
@@ -429,7 +429,7 @@ CefRefPtr<CefOverlayController> CefCppToCRefCounted<
|
||||
CefOverlayController,
|
||||
cef_overlay_controller_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_overlay_controller_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=bbcc06d178c7f86041c0b9f0887c67427a7381ff$
|
||||
// $hash=fba634e939f8074f3a5ddc6717ac93dd9d5d502f$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/panel_cpptoc.h"
|
||||
@@ -1378,7 +1378,7 @@ CefCppToCRefCounted<CefPanelCppToC, CefPanel, cef_panel_t>::UnwrapDerived(
|
||||
if (type == WT_WINDOW) {
|
||||
return CefWindowCppToC::Unwrap(reinterpret_cast<cef_window_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=5738293c290214f784a22e3144475247cd4ee3b4$
|
||||
// $hash=66de178d38a1c9b72867b1eac9ff3c1f7b301c89$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/panel_delegate_cpptoc.h"
|
||||
@@ -317,7 +317,7 @@ CefRefPtr<CefPanelDelegate> CefCppToCRefCounted<
|
||||
return CefWindowDelegateCppToC::Unwrap(
|
||||
reinterpret_cast<cef_window_delegate_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=6f6ba39e44e91b687fc1f4d0c2c1873664b5cf93$
|
||||
// $hash=171b3ef450c160ece605980988dd80af9dd97958$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h"
|
||||
@@ -1309,7 +1309,7 @@ template <>
|
||||
CefRefPtr<CefScrollView>
|
||||
CefCppToCRefCounted<CefScrollViewCppToC, CefScrollView, cef_scroll_view_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_scroll_view_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=4b4c876c54c2ea2240d34c119cf2cdca6e307bde$
|
||||
// $hash=d974792994decce11fe5d5feedc9041203c6c3c1$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/textfield_cpptoc.h"
|
||||
@@ -1761,7 +1761,7 @@ template <>
|
||||
CefRefPtr<CefTextfield>
|
||||
CefCppToCRefCounted<CefTextfieldCppToC, CefTextfield, cef_textfield_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_textfield_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=00fd32a1d0bf034760f3afe3fb62ba58aba6a61b$
|
||||
// $hash=6af00869e573d59adf07c86ba895ee13db7131e7$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h"
|
||||
@@ -378,7 +378,7 @@ CefRefPtr<CefTextfieldDelegate> CefCppToCRefCounted<
|
||||
CefTextfieldDelegate,
|
||||
cef_textfield_delegate_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_textfield_delegate_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=13c90ba22a371d972974229f18f87f407e552102$
|
||||
// $hash=8ea7eff414ea832334a4b3cb92a3efe8a44e9653$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/view_cpptoc.h"
|
||||
@@ -1082,7 +1082,7 @@ CefCppToCRefCounted<CefViewCppToC, CefView, cef_view_t>::UnwrapDerived(
|
||||
if (type == WT_WINDOW) {
|
||||
return CefWindowCppToC::Unwrap(reinterpret_cast<cef_window_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=7411dc1ef606336389a483ed2a95b14d70c8eb3e$
|
||||
// $hash=a5ca3a4f1b8c666eee1a198e455dab6ca623650c$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/view_delegate_cpptoc.h"
|
||||
@@ -334,7 +334,7 @@ CefRefPtr<CefViewDelegate> CefCppToCRefCounted<
|
||||
return CefWindowDelegateCppToC::Unwrap(
|
||||
reinterpret_cast<cef_window_delegate_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=ead4e6a19c7e3ad881931b3cc0d4da81b64a24ea$
|
||||
// $hash=94b9ddc326e4b71aefa8488594a3a6f481624254$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/window_cpptoc.h"
|
||||
@@ -2088,7 +2088,7 @@ CefRefPtr<CefWindow>
|
||||
CefCppToCRefCounted<CefWindowCppToC, CefWindow, cef_window_t>::UnwrapDerived(
|
||||
CefWrapperType type,
|
||||
cef_window_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=c7e5e137df27a4986c13e6f4e2b98eac19a48193$
|
||||
// $hash=c84eb9772fc902904ccbd0cebe2c2105d06a8164$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h"
|
||||
@@ -823,7 +823,7 @@ CefRefPtr<CefWindowDelegate> CefCppToCRefCounted<
|
||||
CefWindowDelegate,
|
||||
cef_window_delegate_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_window_delegate_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user