summaryrefslogtreecommitdiff
path: root/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/widget/desktop_aura/desktop_window_tree_host.h')
-rw-r--r--chromium/ui/views/widget/desktop_aura/desktop_window_tree_host.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host.h b/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host.h
index 735ff41b55a..5ac6a910055 100644
--- a/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host.h
+++ b/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host.h
@@ -28,6 +28,10 @@ class ImageSkia;
class Rect;
} // namespace gfx
+namespace ui {
+class PaintContext;
+} // namespace ui
+
namespace views {
namespace corewm {
class Tooltip;
@@ -198,6 +202,9 @@ class VIEWS_EXPORT DesktopWindowTreeHost {
// Sets the bounds in screen coordinate DIPs (WindowTreeHost generally
// operates in pixels). This function is implemented in terms of Screen.
virtual void SetBoundsInDIP(const gfx::Rect& bounds);
+
+ // Updates window shape by clipping the canvas before paint starts.
+ virtual void UpdateWindowShapeIfNeeded(const ui::PaintContext& context);
};
} // namespace views