Chromium Code Reviews| Index: chrome/browser/ui/webui/signin/signin_utils.h |
| diff --git a/chrome/browser/ui/webui/signin/get_auth_frame.h b/chrome/browser/ui/webui/signin/signin_utils.h |
| similarity index 51% |
| rename from chrome/browser/ui/webui/signin/get_auth_frame.h |
| rename to chrome/browser/ui/webui/signin/signin_utils.h |
| index 7c56c6d8026b2b31bc30d68ae241def26addcc72..f2b828412db0698c925294f426c6c3c8110ca83d 100644 |
| --- a/chrome/browser/ui/webui/signin/get_auth_frame.h |
| +++ b/chrome/browser/ui/webui/signin/signin_utils.h |
| @@ -2,14 +2,19 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_GET_AUTH_FRAME_H_ |
| -#define CHROME_BROWSER_UI_WEBUI_SIGNIN_GET_AUTH_FRAME_H_ |
| +#ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ |
| +#define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ |
| #include <string> |
| +#include "base/values.h" |
| + |
| +class Browser; |
| + |
| namespace content { |
| class RenderFrameHost; |
| class WebContents; |
| +class WebUI; |
| } |
| namespace signin { |
| @@ -23,6 +28,15 @@ content::WebContents* GetAuthFrameWebContents( |
| content::WebContents* web_contents, |
| const std::string& parent_frame_name); |
| +// Gets the browser containing the web UI; if none is found, returns the last |
| +// active browser for web UI's profile. |
| +Browser* GetDesktopBrowser(content::WebUI* web_ui); |
| + |
| +// Sets the height of the WebUI modal dialog after its initialization. This is |
| +// needed to better accomodate different locales' text heights. |
| +void SetInitializedModalHeight(const base::ListValue* args, |
|
tommycli
2016/08/26 16:12:11
nit: normally we always put the WebUI* in front of
|
| + content::WebUI* web_ui); |
| + |
| } // namespace signin |
| -#endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_GET_AUTH_FRAME_H_ |
| +#endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ |