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..dbe3ae668ab7f8f8f96e2df9a22b82b3e0b15aa8 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(content::WebUI* web_ui, |
+ const base::ListValue* args); |
+ |
} // namespace signin |
-#endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_GET_AUTH_FRAME_H_ |
+#endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_UTILS_H_ |