🔧 Draggable (using the window’s regions)

This commit is contained in:
Felix Rieseberg 2017-08-08 17:00:00 -07:00
parent d06eeeede8
commit df66223f4c
5 changed files with 68 additions and 1 deletions

View file

@ -7,6 +7,8 @@
#include "base/macros.h"
#include "third_party/skia/include/core/SkColor.h"
#include "atom/common/draggable_region.h"
#include <vector>
namespace brightray {
class InspectableWebContentsView;
@ -38,6 +40,10 @@ class NativeBrowserView {
virtual void SetBounds(const gfx::Rect& bounds) = 0;
virtual void SetBackgroundColor(SkColor color) = 0;
// Called when the window needs to update its draggable region.
virtual void UpdateDraggableRegions(
const std::vector<DraggableRegion>& regions) = 0;
protected:
explicit NativeBrowserView(
brightray::InspectableWebContentsView* web_contents_view);