Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: ui/views/widget/widget_delegate.h

Issue 2172363002: Created min size for print preview dialog and modified to allow the Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reduced diff Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698