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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix: view id on tests Created 7 years, 1 month 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
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/tab_contents/language_state.h » ('j') | 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/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after
1815 #if defined(OS_ANDROID) 1815 #if defined(OS_ANDROID)
1816 { 1816 {
1817 "disable-click-delay", 1817 "disable-click-delay",
1818 IDS_FLAGS_DISABLE_CLICK_DELAY_NAME, 1818 IDS_FLAGS_DISABLE_CLICK_DELAY_NAME,
1819 IDS_FLAGS_DISABLE_CLICK_DELAY_DESCRIPTION, 1819 IDS_FLAGS_DISABLE_CLICK_DELAY_DESCRIPTION,
1820 kOsAndroid, 1820 kOsAndroid,
1821 // Java-only switch: CommandLine.DISABLE_CLICK_DELAY 1821 // Java-only switch: CommandLine.DISABLE_CLICK_DELAY
1822 SINGLE_VALUE_TYPE("disable-click-delay") 1822 SINGLE_VALUE_TYPE("disable-click-delay")
1823 }, 1823 },
1824 #endif 1824 #endif
1825 {
1826 "enable-translate-new-ux",
1827 IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_NAME,
1828 IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_DESCRIPTION,
1829 kOsDesktop,
1830 SINGLE_VALUE_TYPE(switches::kEnableTranslateNewUX)
1831 },
1825 }; 1832 };
1826 1833
1827 const Experiment* experiments = kExperiments; 1834 const Experiment* experiments = kExperiments;
1828 size_t num_experiments = arraysize(kExperiments); 1835 size_t num_experiments = arraysize(kExperiments);
1829 1836
1830 // Stores and encapsulates the little state that about:flags has. 1837 // Stores and encapsulates the little state that about:flags has.
1831 class FlagsState { 1838 class FlagsState {
1832 public: 1839 public:
1833 FlagsState() : needs_restart_(false) {} 1840 FlagsState() : needs_restart_(false) {}
1834 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1841 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
2315 } 2322 }
2316 2323
2317 const Experiment* GetExperiments(size_t* count) { 2324 const Experiment* GetExperiments(size_t* count) {
2318 *count = num_experiments; 2325 *count = num_experiments;
2319 return experiments; 2326 return experiments;
2320 } 2327 }
2321 2328
2322 } // namespace testing 2329 } // namespace testing
2323 2330
2324 } // namespace about_flags 2331 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/tab_contents/language_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698