refactor: rename TopLevelWindow to BaseWindow (#24305)
This commit is contained in:
parent
80e5007c47
commit
ef3579eae3
21 changed files with 433 additions and 451 deletions
|
@ -6,7 +6,7 @@
|
|||
#define SHELL_COMMON_GIN_CONVERTERS_NATIVE_WINDOW_CONVERTER_H_
|
||||
|
||||
#include "gin/converter.h"
|
||||
#include "shell/browser/api/electron_api_top_level_window.h"
|
||||
#include "shell/browser/api/electron_api_base_window.h"
|
||||
|
||||
namespace gin {
|
||||
|
||||
|
@ -21,9 +21,9 @@ struct Converter<electron::NativeWindow*> {
|
|||
return true;
|
||||
}
|
||||
|
||||
electron::api::TopLevelWindow* window;
|
||||
if (!gin::Converter<electron::api::TopLevelWindow*>::FromV8(isolate, val,
|
||||
&window))
|
||||
electron::api::BaseWindow* window;
|
||||
if (!gin::Converter<electron::api::BaseWindow*>::FromV8(isolate, val,
|
||||
&window))
|
||||
return false;
|
||||
*out = window->window();
|
||||
return true;
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
V(electron_browser_protocol) \
|
||||
V(electron_browser_session) \
|
||||
V(electron_browser_system_preferences) \
|
||||
V(electron_browser_top_level_window) \
|
||||
V(electron_browser_base_window) \
|
||||
V(electron_browser_tray) \
|
||||
V(electron_browser_view) \
|
||||
V(electron_browser_web_contents) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue