2018-03-06 14:07:06 +09: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 12:19:40 -08:00
|
|
|
#include "shell/browser/api/electron_api_browser_window.h"
|
2018-03-06 14:07:06 +09:00
|
|
|
|
2019-06-19 13:46:59 -07:00
|
|
|
#include "shell/browser/native_window_views.h"
|
2018-03-06 15:04:40 +09:00
|
|
|
|
2019-06-19 14:23:04 -07:00
|
|
|
namespace electron {
|
2018-03-06 14:07:06 +09:00
|
|
|
|
|
|
|
namespace api {
|
|
|
|
|
|
|
|
void BrowserWindow::UpdateDraggableRegions(
|
2019-06-03 10:43:04 -07:00
|
|
|
const std::vector<mojom::DraggableRegionPtr>& regions) {
|
2018-03-06 14:44:36 +09:00
|
|
|
if (window_->has_frame())
|
|
|
|
return;
|
2018-04-17 21:55:30 -04:00
|
|
|
static_cast<NativeWindowViews*>(window_.get())
|
|
|
|
->UpdateDraggableRegions(DraggableRegionsToSkRegion(regions));
|
2018-03-06 14:07:06 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace api
|
|
|
|
|
2019-06-19 14:23:04 -07:00
|
|
|
} // namespace electron
|