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

Side by Side Diff: chrome/browser/ui/views/about_chrome_view.cc

Issue 9352011: About: Use the old TOS string for Linux,Win old about dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/about_chrome_dialog.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/about_chrome_dialog.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698