summaryrefslogtreecommitdiffstats
path: root/views/widget/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/widget.h')
-rw-r--r--views/widget/widget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/widget/widget.h b/views/widget/widget.h
index 14a61a0..1dabf08 100644
--- a/views/widget/widget.h
+++ b/views/widget/widget.h
@@ -10,6 +10,7 @@
class ThemeProvider;
namespace gfx {
+class Path;
class Rect;
}
@@ -49,6 +50,9 @@ class Widget {
// Sizes and/or places the widget to the specified bounds, size or position.
virtual void SetBounds(const gfx::Rect& bounds) = 0;
+ // Sets a shape on the widget.
+ virtual void SetShape(const gfx::Path& shape) = 0;
+
// Hides the widget then closes it after a return to the message loop.
virtual void Close() = 0;