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

Side by Side Diff: chrome/browser/ui/views/translate/translate_bubble_view.cc

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/translate/translate_bubble_view.h" 5 #include "chrome/browser/ui/views/translate/translate_bubble_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 case LINK_ID_ADVANCED: { 358 case LINK_ID_ADVANCED: {
359 SwitchView(TranslateBubbleModel::VIEW_STATE_ADVANCED); 359 SwitchView(TranslateBubbleModel::VIEW_STATE_ADVANCED);
360 break; 360 break;
361 } 361 }
362 case LINK_ID_LANGUAGE_SETTINGS: { 362 case LINK_ID_LANGUAGE_SETTINGS: {
363 GURL url = chrome::GetSettingsUrl(chrome::kLanguageOptionsSubPage); 363 GURL url = chrome::GetSettingsUrl(chrome::kLanguageOptionsSubPage);
364 web_contents()->OpenURL(content::OpenURLParams( 364 web_contents()->OpenURL(content::OpenURLParams(
365 url, 365 url,
366 content::Referrer(), 366 content::Referrer(),
367 NEW_FOREGROUND_TAB, 367 NEW_FOREGROUND_TAB,
368 content::PAGE_TRANSITION_LINK, 368 ui::PAGE_TRANSITION_LINK,
369 false)); 369 false));
370 break; 370 break;
371 } 371 }
372 } 372 }
373 } 373 }
374 374
375 void TranslateBubbleView::HandleComboboxPerformAction( 375 void TranslateBubbleView::HandleComboboxPerformAction(
376 TranslateBubbleView::ComboboxID sender_id) { 376 TranslateBubbleView::ComboboxID sender_id) {
377 switch (sender_id) { 377 switch (sender_id) {
378 case COMBOBOX_ID_DENIAL: { 378 case COMBOBOX_ID_DENIAL: {
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 model_->ShouldAlwaysTranslate()); 761 model_->ShouldAlwaysTranslate());
762 } 762 }
763 763
764 base::string16 label; 764 base::string16 label;
765 if (model_->IsPageTranslatedInCurrentLanguages()) 765 if (model_->IsPageTranslatedInCurrentLanguages())
766 label = l10n_util::GetStringUTF16(IDS_DONE); 766 label = l10n_util::GetStringUTF16(IDS_DONE);
767 else 767 else
768 label = l10n_util::GetStringUTF16(IDS_TRANSLATE_BUBBLE_ACCEPT); 768 label = l10n_util::GetStringUTF16(IDS_TRANSLATE_BUBBLE_ACCEPT);
769 advanced_done_button_->SetText(label); 769 advanced_done_button_->SetText(label);
770 } 770 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698