Index: ui/views/widget/widget_delegate.h |
diff --git a/ui/views/widget/widget_delegate.h b/ui/views/widget/widget_delegate.h |
index f465ffb3bc112f3762dc449402cea2df93c3f575..4466e52cfa23b5d8445b8ba650ce1b51c5575173 100644 |
--- a/ui/views/widget/widget_delegate.h |
+++ b/ui/views/widget/widget_delegate.h |
@@ -159,6 +159,11 @@ class VIEWS_EXPORT WidgetDelegate { |
// Provides the hit-test mask if HasHitTestMask above returns true. |
virtual void GetWidgetHitTestMask(gfx::Path* mask) const; |
+ // Returns true if focus should advance to the top level widget when |
+ // tab/shift-tab is hit and on the last/first focusable view. Default returns |
+ // false, which means tab/shift-tab never advance to the top level Widget. |
+ virtual bool ShouldAdvanceFocusToTopLevelWidget() const; |
+ |
// Returns true if event handling should descend into |child|. |
// |location| is in terms of the Window. |
virtual bool ShouldDescendIntoChildForEventHandling( |