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

Side by Side Diff: chrome/browser/ui/webui/constrained_web_dialog_ui.h

Issue 1440173003: Revert of Enable AutoResize for Constrained Web Dialogs for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/public/browser/web_ui_controller.h" 9 #include "content/public/browser/web_ui_controller.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Returns the native type used to display the dialog. 44 // Returns the native type used to display the dialog.
45 virtual gfx::NativeWindow GetNativeDialog() = 0; 45 virtual gfx::NativeWindow GetNativeDialog() = 0;
46 46
47 // Returns the minimum size for the dialog. 47 // Returns the minimum size for the dialog.
48 virtual gfx::Size GetMinimumSize() const = 0; 48 virtual gfx::Size GetMinimumSize() const = 0;
49 49
50 // Returns the maximum size for the dialog. 50 // Returns the maximum size for the dialog.
51 virtual gfx::Size GetMaximumSize() const = 0; 51 virtual gfx::Size GetMaximumSize() const = 0;
52 52
53 // Returns the preferred size for the dialog, or an empty size if
54 // the dialog has been closed.
55 virtual gfx::Size GetPreferredSize() const = 0; 53 virtual gfx::Size GetPreferredSize() const = 0;
56 54
57 protected: 55 protected:
58 virtual ~ConstrainedWebDialogDelegate() {} 56 virtual ~ConstrainedWebDialogDelegate() {}
59 }; 57 };
60 58
61 // ConstrainedWebDialogUI is a facility to show HTML WebUI content 59 // ConstrainedWebDialogUI is a facility to show HTML WebUI content
62 // in a tab-modal constrained dialog. It is implemented as an adapter 60 // in a tab-modal constrained dialog. It is implemented as an adapter
63 // between an WebDialogUI object and a web contents modal dialog. 61 // between an WebDialogUI object and a web contents modal dialog.
64 // 62 //
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // |min_size| is the minimum size of the dialog. 107 // |min_size| is the minimum size of the dialog.
110 // |max_size| is the maximum size of the dialog. 108 // |max_size| is the maximum size of the dialog.
111 ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize( 109 ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize(
112 content::BrowserContext* browser_context, 110 content::BrowserContext* browser_context,
113 ui::WebDialogDelegate* delegate, 111 ui::WebDialogDelegate* delegate,
114 content::WebContents* overshadowed, 112 content::WebContents* overshadowed,
115 const gfx::Size& min_size, 113 const gfx::Size& min_size,
116 const gfx::Size& max_size); 114 const gfx::Size& max_size);
117 115
118 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ 116 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698