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 #include "chrome/browser/ui/views/about_chrome_view.h" | 5 #include "chrome/browser/ui/views/about_chrome_view.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <commdlg.h> | 8 #include <commdlg.h> |
9 #endif // defined(OS_WIN) | 9 #endif // defined(OS_WIN) |
10 | 10 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 views::kRelatedControlVerticalSpacing + | 275 views::kRelatedControlVerticalSpacing + |
276 // Copyright line. | 276 // Copyright line. |
277 font.GetHeight() + | 277 font.GetHeight() + |
278 // Main label. | 278 // Main label. |
279 dummy_text.GetHeightForWidth( | 279 dummy_text.GetHeightForWidth( |
280 dialog_dimensions_.width() - (2 * views::kPanelHorizMargin)) + | 280 dialog_dimensions_.width() - (2 * views::kPanelHorizMargin)) + |
281 views::kRelatedControlVerticalSpacing; | 281 views::kRelatedControlVerticalSpacing; |
282 | 282 |
283 #if defined(GOOGLE_CHROME_BUILD) | 283 #if defined(GOOGLE_CHROME_BUILD) |
284 std::vector<size_t> url_offsets; | 284 std::vector<size_t> url_offsets; |
285 text = l10n_util::GetStringFUTF16(IDS_ABOUT_TERMS_OF_SERVICE, | 285 text = l10n_util::GetStringFUTF16(IDS_ABOUT_OLD_TERMS_OF_SERVICE, |
286 string16(), | 286 string16(), |
287 string16(), | 287 string16(), |
288 &url_offsets); | 288 &url_offsets); |
289 | 289 |
290 main_label_chunk4_ = text.substr(0, url_offsets[0]); | 290 main_label_chunk4_ = text.substr(0, url_offsets[0]); |
291 main_label_chunk5_ = text.substr(url_offsets[0]); | 291 main_label_chunk5_ = text.substr(url_offsets[0]); |
292 | 292 |
293 // The Terms of Service URL at the bottom. | 293 // The Terms of Service URL at the bottom. |
294 terms_of_service_url_ = new views::Link( | 294 terms_of_service_url_ = new views::Link( |
295 l10n_util::GetStringUTF16(IDS_TERMS_OF_SERVICE)); | 295 l10n_util::GetStringUTF16(IDS_TERMS_OF_SERVICE)); |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 int height = error_label_->GetHeightForWidth( | 796 int height = error_label_->GetHeightForWidth( |
797 dialog_dimensions_.width() - (2 * views::kPanelHorizMargin)) + | 797 dialog_dimensions_.width() - (2 * views::kPanelHorizMargin)) + |
798 views::kRelatedControlVerticalSpacing; | 798 views::kRelatedControlVerticalSpacing; |
799 window_rect.set_height(window_rect.height() + height); | 799 window_rect.set_height(window_rect.height() + height); |
800 GetWidget()->SetBounds(window_rect); | 800 GetWidget()->SetBounds(window_rect); |
801 | 801 |
802 return height; | 802 return height; |
803 } | 803 } |
804 | 804 |
805 #endif | 805 #endif |
OLD | NEW |