2018-03-06 05:07:06 +00:00
|
|
|
// Copyright (c) 2018 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
#include "shell/browser/api/electron_api_browser_window.h"
|
2018-03-06 05:07:06 +00:00
|
|
|
|
2019-06-19 20:46:59 +00:00
|
|
|
#include "shell/browser/native_window_views.h"
|
2018-03-06 06:04:40 +00:00
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2018-03-06 05:07:06 +00:00
|
|
|
|
|
|
|
namespace api {
|
|
|
|
|
|
|
|
void BrowserWindow::UpdateDraggableRegions(
|
2019-06-03 17:43:04 +00:00
|
|
|
const std::vector<mojom::DraggableRegionPtr>& regions) {
|
2018-03-06 05:44:36 +00:00
|
|
|
if (window_->has_frame())
|
|
|
|
return;
|
2018-04-18 01:55:30 +00:00
|
|
|
static_cast<NativeWindowViews*>(window_.get())
|
|
|
|
->UpdateDraggableRegions(DraggableRegionsToSkRegion(regions));
|
2018-03-06 05:07:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace api
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|