| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SIGNIN_SIGNIN_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 content::WebContents* GetAuthFrameWebContents( | 27 content::WebContents* GetAuthFrameWebContents( |
| 28 content::WebContents* web_contents, | 28 content::WebContents* web_contents, |
| 29 const std::string& parent_frame_name); | 29 const std::string& parent_frame_name); |
| 30 | 30 |
| 31 // Gets the browser containing the web UI; if none is found, returns the last | 31 // Gets the browser containing the web UI; if none is found, returns the last |
| 32 // active browser for web UI's profile. | 32 // active browser for web UI's profile. |
| 33 Browser* GetDesktopBrowser(content::WebUI* web_ui); | 33 Browser* GetDesktopBrowser(content::WebUI* web_ui); |
| 34 | 34 |
| 35 // Sets the height of the WebUI modal dialog after its initialization. This is | 35 // Sets the height of the WebUI modal dialog after its initialization. This is |
| 36 // needed to better accomodate different locales' text heights. | 36 // needed to better accomodate different locales' text heights. |
| 37 void SetInitializedModalHeight(content::WebUI* web_ui, | 37 void SetInitializedModalHeight(Browser* browser, |
| 38 content::WebUI* web_ui, |
| 38 const base::ListValue* args); | 39 const base::ListValue* args); |
| 39 | 40 |
| 40 // Return true if force signin is enabled by group policy. | 41 // Return true if force signin is enabled by group policy. |
| 41 bool IsForceSigninEnabled(); | 42 bool IsForceSigninEnabled(); |
| 42 | 43 |
| 43 } // namespace signin | 44 } // namespace signin |
| 44 | 45 |
| 45 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ | 46 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ |
| OLD | NEW |