| Index: ui/views/widget/widget_delegate.h
|
| diff --git a/ui/views/widget/widget_delegate.h b/ui/views/widget/widget_delegate.h
|
| index 8a344c5562371f2a1ec10b5e809aca43ee78ab4c..c0ae4489e84971c509655b03e0d918240478a183 100644
|
| --- a/ui/views/widget/widget_delegate.h
|
| +++ b/ui/views/widget/widget_delegate.h
|
| @@ -36,6 +36,10 @@ class VIEWS_EXPORT WidgetDelegate {
|
| can_activate_ = can_activate;
|
| }
|
|
|
| + void set_top_level(bool is_top_level) {
|
| + is_top_level_ = is_top_level;
|
| + }
|
| +
|
| // Called whenever the widget's position changes.
|
| virtual void OnWidgetMove();
|
|
|
| @@ -65,6 +69,8 @@ class VIEWS_EXPORT WidgetDelegate {
|
| // Returns true if the window can be activated.
|
| virtual bool CanActivate() const;
|
|
|
| + virtual bool IsTopLevel() const;
|
| +
|
| // Returns the modal type that applies to the widget. Default is
|
| // ui::MODAL_TYPE_NONE (not modal).
|
| virtual ui::ModalType GetModalType() const;
|
| @@ -191,6 +197,7 @@ class VIEWS_EXPORT WidgetDelegate {
|
| View* default_contents_view_;
|
|
|
| bool can_activate_;
|
| + bool is_top_level_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(WidgetDelegate);
|
| };
|
|
|