Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 // This file contains helper functions used by Chromium OS login. | 5 // This file contains helper functions used by Chromium OS login. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ |
| 8 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ | 8 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "third_party/skia/include/core/SkColor.h" | 14 #include "third_party/skia/include/core/SkColor.h" |
| 15 #include "ui/views/view.h" | 15 #include "ui/views/view.h" |
| 16 | 16 |
| 17 class GURL; | 17 class GURL; |
| 18 | 18 |
| 19 namespace gfx { | 19 namespace gfx { |
| 20 class Rect; | 20 class Rect; |
| 21 class Size; | 21 class Size; |
| 22 } // namespace gfx | 22 } // namespace gfx |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 class StoragePartition; | 25 class StoragePartition; |
| 26 } | 26 } // namespace content |
|
achuithb
2015/11/05 23:26:12
I think we don't do this when the namespace is sma
stevenjb
2015/11/05 23:48:25
+1
xdai1
2015/11/06 23:23:02
Done.
| |
| 27 | 27 |
| 28 namespace net { | 28 namespace net { |
| 29 class URLRequestContextGetter; | 29 class URLRequestContextGetter; |
| 30 } | 30 } // namespace net |
| 31 | 31 |
| 32 namespace chromeos { | 32 namespace chromeos { |
| 33 | 33 |
| 34 // Returns bounds of the screen to use for login wizard. | 34 // Returns bounds of the screen to use for login wizard. |
| 35 // The rect is centered within the default monitor and sized accordingly if | 35 // The rect is centered within the default monitor and sized accordingly if |
| 36 // |size| is not empty. Otherwise the whole monitor is occupied. | 36 // |size| is not empty. Otherwise the whole monitor is occupied. |
| 37 gfx::Rect CalculateScreenBounds(const gfx::Size& size); | 37 gfx::Rect CalculateScreenBounds(const gfx::Size& size); |
| 38 | 38 |
| 39 // Returns the size of user image required for proper display under current DPI. | 39 // Returns the size of user image required for proper display under current DPI. |
| 40 int GetCurrentUserImageSize(); | 40 int GetCurrentUserImageSize(); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 // Returns the request context that contains sign-in cookies. For old iframe | 94 // Returns the request context that contains sign-in cookies. For old iframe |
| 95 // based flow, the context of the sign-in profile is returned. For webview based | 95 // based flow, the context of the sign-in profile is returned. For webview based |
| 96 // flow, the context of the sign-in webview storage partition is returned. | 96 // flow, the context of the sign-in webview storage partition is returned. |
| 97 net::URLRequestContextGetter* GetSigninContext(); | 97 net::URLRequestContextGetter* GetSigninContext(); |
| 98 | 98 |
| 99 } // namespace login | 99 } // namespace login |
| 100 | 100 |
| 101 } // namespace chromeos | 101 } // namespace chromeos |
| 102 | 102 |
| 103 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ | 103 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ |
| OLD | NEW |