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

Side by Side Diff: chrome/browser/ui/webui/constrained_web_dialog_ui.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: Merge ConstrainedWebDialog functions Created 4 years 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 "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/browser/web_ui_controller.h" 10 #include "content/public/browser/web_ui_controller.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // of a ConstrainedWebDialogUI object. 92 // of a ConstrainedWebDialogUI object.
93 // |browser_context| is used to construct the constrained HTML dialog's 93 // |browser_context| is used to construct the constrained HTML dialog's
94 // WebContents. 94 // WebContents.
95 // |delegate| controls the behavior of the dialog. 95 // |delegate| controls the behavior of the dialog.
96 // |overshadowed| is the tab being overshadowed by the dialog. 96 // |overshadowed| is the tab being overshadowed by the dialog.
97 ConstrainedWebDialogDelegate* ShowConstrainedWebDialog( 97 ConstrainedWebDialogDelegate* ShowConstrainedWebDialog(
98 content::BrowserContext* browser_context, 98 content::BrowserContext* browser_context,
99 ui::WebDialogDelegate* delegate, 99 ui::WebDialogDelegate* delegate,
100 content::WebContents* overshadowed); 100 content::WebContents* overshadowed);
101 101
102 // Create and show a constrained HTML dialog that is a peer rather than a child
103 // of the original |web_contents| window. The dialog is top level but does not
104 // prevent access to the original |web_contents| and on some platforms
105 // (ChromeOS) can extend outside of the original parent window. The actual
106 // object that gets created is a ConstrainedWebDialogDelegate, which later
107 // triggers construction of a ConstrainedWebDialogUI object. The returned
108 // object deletes itself when the dialog closes.
109 // |browser_context| is used to construct the constrained HTML dialog's
110 // WebContents.
111 // |delegate| controls the behavior of the dialog.
112 // |web_contents| is the tab being covered by the dialog.
113 /*ConstrainedWebDialogDelegate* ShowTopLevelConstrainedWebDialog(
114 content::BrowserContext* browser_context,
115 ui::WebDialogDelegate* delegate,
116 content::WebContents* web_contents);*/
117
118 // Like ShowTopLevelConstrainedWebDialog, but uses |dialog_host_window| as the
119 // host window for the dialog rather than the modal dialog host view from the
120 // top level window of web_contents. Used for unit test where GetRootView() and
121 // GetHostView() may not work as expected.
122 ConstrainedWebDialogDelegate* ShowTopLevelConstrainedWebDialogInWindow(
123 content::BrowserContext* browser_context,
124 ui::WebDialogDelegate* delegate,
125 content::WebContents* web_contents,
126 gfx::NativeView dialog_host_window);
127
102 // Create and show a constrained HTML dialog with auto-resize enabled. The 128 // Create and show a constrained HTML dialog with auto-resize enabled. The
103 // dialog is shown automatically after document load has completed to avoid UI 129 // dialog is shown automatically after document load has completed to avoid UI
104 // jankiness. 130 // jankiness.
105 // |browser_context| is used to construct the dialog's WebContents. 131 // |browser_context| is used to construct the dialog's WebContents.
106 // |delegate| controls the behavior of the dialog. 132 // |delegate| controls the behavior of the dialog.
107 // |overshadowed| is the tab being overshadowed by the dialog. 133 // |overshadowed| is the tab being overshadowed by the dialog.
108 // |min_size| is the minimum size of the dialog. 134 // |min_size| is the minimum size of the dialog.
109 // |max_size| is the maximum size of the dialog. 135 // |max_size| is the maximum size of the dialog.
110 ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize( 136 ConstrainedWebDialogDelegate* ShowConstrainedWebDialogWithAutoResize(
111 content::BrowserContext* browser_context, 137 content::BrowserContext* browser_context,
112 ui::WebDialogDelegate* delegate, 138 ui::WebDialogDelegate* delegate,
113 content::WebContents* overshadowed, 139 content::WebContents* overshadowed,
114 const gfx::Size& min_size, 140 const gfx::Size& min_size,
115 const gfx::Size& max_size); 141 const gfx::Size& max_size);
116 142
117 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ 143 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/certificate_viewer_webui.cc ('k') | chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698