fix: chrome://accessibility not loading (#24437)

This commit is contained in:
Shelley Vohr 2020-07-16 10:14:54 -07:00 committed by GitHub
parent 24fb498fd3
commit 3f37ff87d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 668 additions and 1 deletions

View file

@ -49,6 +49,8 @@ gfx::Size GetExpandedWindowSize(const NativeWindow* window, gfx::Size size) {
NativeWindow::NativeWindow(const gin_helper::Dictionary& options,
NativeWindow* parent)
: widget_(new views::Widget), parent_(parent), weak_factory_(this) {
++next_id_;
options.Get(options::kFrame, &has_frame_);
options.Get(options::kTransparent, &transparent_);
options.Get(options::kEnableLargerThanScreen, &enable_larger_than_screen_);
@ -606,6 +608,9 @@ std::string NativeWindow::GetAccessibleTitle() {
return base::UTF16ToUTF8(accessible_title_);
}
// static
int32_t NativeWindow::next_id_ = 0;
// static
void NativeWindowRelay::CreateForWebContents(
content::WebContents* web_contents,