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

Unified Diff: ui/views/window/dialog_delegate.h

Issue 2108793002: mash: Convert system tray logout button to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more review comments, fix mash_unittests Created 4 years, 6 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
« no previous file with comments | « chrome/browser/ui/views/profiles/user_manager_view.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.h
diff --git a/ui/views/window/dialog_delegate.h b/ui/views/window/dialog_delegate.h
index b6532dc44bc6e3eee76d4bd9422cf2414c3af6f7..c74f5461ab9f131376a6261deb563a448be75c49 100644
--- a/ui/views/window/dialog_delegate.h
+++ b/ui/views/window/dialog_delegate.h
@@ -11,6 +11,7 @@
#include "ui/accessibility/ax_enums.h"
#include "ui/base/models/dialog_model.h"
#include "ui/base/ui_base_types.h"
+#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
namespace views {
@@ -34,18 +35,18 @@ class VIEWS_EXPORT DialogDelegate : public ui::DialogModel,
DialogDelegate();
~DialogDelegate() override;
- // Same as CreateDialogWidgetWithBounds() with an empty |bounds|.
+ // Creates a widget at a default location.
static Widget* CreateDialogWidget(WidgetDelegate* delegate,
gfx::NativeWindow context,
gfx::NativeView parent);
- // Create a dialog widget with the specified |context| or |parent|.
+ // Returns the dialog widget InitParams for a given |context| or |parent|.
// If |bounds| is not empty, used to initially place the dialog, otherwise
// a default location is used.
- static Widget* CreateDialogWidgetWithBounds(WidgetDelegate* delegate,
- gfx::NativeWindow context,
- gfx::NativeView parent,
- const gfx::Rect& bounds);
+ static Widget::InitParams GetDialogWidgetInitParams(WidgetDelegate* delegate,
+ gfx::NativeWindow context,
+ gfx::NativeView parent,
+ const gfx::Rect& bounds);
// Override this function to display an extra view adjacent to the buttons.
// Overrides may construct the view; this will only be called once per dialog.
« no previous file with comments | « chrome/browser/ui/views/profiles/user_manager_view.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698