Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: move some BrowserWindow specs to the main process #19182

Merged
merged 20 commits into from
Jul 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/api/browser-window.md
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,10 @@ Returns [`Rectangle`](structures/rectangle.md) - Contains the window bounds of t

Disable or enable the window.

#### `win.isEnabled()`

Returns Boolean - whether the window is enabled.

#### `win.setSize(width, height[, animate])`

* `width` Integer
Expand Down Expand Up @@ -1566,7 +1570,7 @@ On macOS it does not remove the focus from the window.

#### `win.setParentWindow(parent)`

* `parent` BrowserWindow
* `parent` BrowserWindow | null

Sets `parent` as current window's parent window, passing `null` will turn
current window into a top-level window.
Expand Down
6 changes: 2 additions & 4 deletions shell/browser/api/atom_api_system_preferences_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,12 @@ AVMediaType ParseMediaType(const std::string& media_type) {

if (user_info) {
copied_callback.Run(
base::SysNSStringToUTF8(notification.name),
*user_info,
base::SysNSStringToUTF8(notification.name), *user_info,
object);
} else {
copied_callback.Run(
base::SysNSStringToUTF8(notification.name),
base::DictionaryValue(),
object);
base::DictionaryValue(), object);
}
}];
return request_id;
Expand Down