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

Unified Diff: chrome/browser/ui/webui/signin/signin_utils.h

Issue 2275883003: [Signin Error Dialog] (2/3) Added handlers and UI constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@error-modal-web
Patch Set: Final nit from tommycli Created 4 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/signin/signin_error_ui.cc ('k') | chrome/browser/ui/webui/signin/signin_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/browser/ui/webui/signin/signin_error_ui.cc ('k') | chrome/browser/ui/webui/signin/signin_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698