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

Unified Diff: chrome/browser/ui/views/profiles/user_manager_view.h

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 9 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: chrome/browser/ui/views/profiles/user_manager_view.h
diff --git a/chrome/browser/ui/views/profiles/user_manager_view.h b/chrome/browser/ui/views/profiles/user_manager_view.h
index e140aab103dfe40a592d5fd87674d5b591a03a7e..79291d41fff111243a4aaf99ab5bfb358f1e3044 100644
--- a/chrome/browser/ui/views/profiles/user_manager_view.h
+++ b/chrome/browser/ui/views/profiles/user_manager_view.h
@@ -43,7 +43,7 @@ class UserManagerProfileDialogDelegate
void OnDialogDestroyed();
// views::DialogDelegate:
- gfx::Size GetPreferredSize() const override;
+ gfx::Size GetUnsnappedPreferredSize() const override;
bool CanResize() const override;
bool CanMaximize() const override;
bool CanMinimize() const override;
@@ -118,12 +118,12 @@ class UserManagerView : public views::DialogDelegateView {
// views::View:
bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
- gfx::Size GetPreferredSize() const override;
// views::DialogDelegateView:
Peter Kasting 2017/03/30 00:35:35 Nit: Combine with above section
bool CanResize() const override;
bool CanMaximize() const override;
bool CanMinimize() const override;
+ gfx::Size GetUnsnappedPreferredSize() const override;
base::string16 GetWindowTitle() const override;
int GetDialogButtons() const override;
void WindowClosing() override;

Powered by Google App Engine
This is Rietveld 408576698