We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b1c323 + 6d4254d commit bcd5e49Copy full SHA for bcd5e49
src/api/window/window.cc
@@ -223,7 +223,12 @@ void Window::Call(const std::string& method,
223
shell_->window()->SetKiosk(!shell_->window()->IsKiosk());
224
} else if (method == "CloseDevTools") {
225
shell_->CloseDevTools();
226
- }else if (method == "ResizeTo") {
+ } else if (method == "SetPosition") {
227
+ std::string position;
228
+ if (arguments.GetString(0, &position)){
229
+ shell_->window()->SetPosition(position);
230
+ }
231
+ } else if (method == "ResizeTo") {
232
int width, height;
233
if (arguments.GetInteger(0, &width) &&
234
arguments.GetInteger(1, &height))
0 commit comments