OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/login/captcha_view.h" | 5 #include "chrome/browser/chromeos/login/captcha_view.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/chromeos/login/helper.h" | 9 #include "chrome/browser/chromeos/login/helper.h" |
10 #include "chrome/browser/chromeos/login/image_downloader.h" | 10 #include "chrome/browser/chromeos/login/image_downloader.h" |
11 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" | 11 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" |
12 #include "chrome/browser/chromeos/login/textfield_with_margin.h" | 12 #include "chrome/browser/chromeos/login/textfield_with_margin.h" |
13 #include "chrome/browser/chromeos/views/copy_background.h" | 13 #include "chrome/browser/chromeos/views/copy_background.h" |
14 #include "grit/chromium_strings.h" | 14 #include "grit/chromium_strings.h" |
15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
16 #include "grit/locale_settings.h" | 16 #include "grit/locale_settings.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 #include "views/background.h" | 18 #include "views/background.h" |
19 #include "views/controls/button/text_button.h" | 19 #include "views/controls/button/text_button.h" |
20 #include "views/controls/image_view.h" | 20 #include "views/controls/image_view.h" |
21 #include "views/controls/label.h" | 21 #include "views/controls/label.h" |
22 #include "views/grid_layout.h" | 22 #include "views/grid_layout.h" |
23 #include "views/standard_layout.h" | 23 #include "views/layout/layout_constants.h" |
24 #include "views/widget/widget_gtk.h" | 24 #include "views/widget/widget_gtk.h" |
25 #include "views/window/window.h" | 25 #include "views/window/window.h" |
26 | 26 |
27 using views::Label; | 27 using views::Label; |
28 using views::Textfield; | 28 using views::Textfield; |
29 using views::WidgetGtk; | 29 using views::WidgetGtk; |
30 | 30 |
31 namespace chromeos { | 31 namespace chromeos { |
32 | 32 |
33 namespace { | 33 namespace { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 layout->AddView(ok_button_, 1, 1, | 202 layout->AddView(ok_button_, 1, 1, |
203 views::GridLayout::CENTER, views::GridLayout::CENTER); | 203 views::GridLayout::CENTER, views::GridLayout::CENTER); |
204 } | 204 } |
205 | 205 |
206 // ImageDownloader will delete itself once URL is fetched. | 206 // ImageDownloader will delete itself once URL is fetched. |
207 // TODO(nkostylev): Make sure that it works after view is deleted. | 207 // TODO(nkostylev): Make sure that it works after view is deleted. |
208 new ImageDownloader(this, GURL(captcha_url_), std::string()); | 208 new ImageDownloader(this, GURL(captcha_url_), std::string()); |
209 } | 209 } |
210 | 210 |
211 } // namespace chromeos | 211 } // namespace chromeos |
OLD | NEW |