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/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
6 | 6 |
7 #include <iterator> | 7 #include <iterator> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1788 {"enable-scroll-anchoring", IDS_FLAGS_ENABLE_SCROLL_ANCHORING_NAME, | 1788 {"enable-scroll-anchoring", IDS_FLAGS_ENABLE_SCROLL_ANCHORING_NAME, |
1789 IDS_FLAGS_ENABLE_SCROLL_ANCHORING_DESCRIPTION, kOsAll, | 1789 IDS_FLAGS_ENABLE_SCROLL_ANCHORING_DESCRIPTION, kOsAll, |
1790 FEATURE_VALUE_TYPE(features::kScrollAnchoring)}, | 1790 FEATURE_VALUE_TYPE(features::kScrollAnchoring)}, |
1791 #if !defined(OS_ANDROID) | 1791 #if !defined(OS_ANDROID) |
1792 {"ui-disable-compositor-animation-timelines", | 1792 {"ui-disable-compositor-animation-timelines", |
1793 IDS_FLAGS_DISABLE_UI_COMPOSITOR_ANIMATION_TIMELINES, | 1793 IDS_FLAGS_DISABLE_UI_COMPOSITOR_ANIMATION_TIMELINES, |
1794 IDS_FLAGS_DISABLE_UI_COMPOSITOR_ANIMATION_TIMELINES_DESCRIPTION, | 1794 IDS_FLAGS_DISABLE_UI_COMPOSITOR_ANIMATION_TIMELINES_DESCRIPTION, |
1795 kOsDesktop, SINGLE_DISABLE_VALUE_TYPE( | 1795 kOsDesktop, SINGLE_DISABLE_VALUE_TYPE( |
1796 switches::kUIDisableCompositorAnimationTimelines)}, | 1796 switches::kUIDisableCompositorAnimationTimelines)}, |
1797 #endif // !defined(OS_ANDROID) | 1797 #endif // !defined(OS_ANDROID) |
| 1798 #if defined(OS_ANDROID) |
| 1799 {"use-ime-thread", IDS_FLAGS_USE_IME_THREAD_NAME, |
| 1800 IDS_FLAGS_USE_IME_THREAD_DESCRIPTION, kOsAndroid, |
| 1801 SINGLE_VALUE_TYPE(switches::kUseImeThread)}, |
| 1802 #endif // defined(OS_ANDROID) |
1798 // NOTE: Adding new command-line switches requires adding corresponding | 1803 // NOTE: Adding new command-line switches requires adding corresponding |
1799 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1804 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
1800 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1805 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
1801 }; | 1806 }; |
1802 | 1807 |
1803 class FlagsStateSingleton { | 1808 class FlagsStateSingleton { |
1804 public: | 1809 public: |
1805 FlagsStateSingleton() | 1810 FlagsStateSingleton() |
1806 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 1811 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
1807 ~FlagsStateSingleton() {} | 1812 ~FlagsStateSingleton() {} |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2009 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2014 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2010 | 2015 |
2011 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2016 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2012 *count = arraysize(kFeatureEntries); | 2017 *count = arraysize(kFeatureEntries); |
2013 return kFeatureEntries; | 2018 return kFeatureEntries; |
2014 } | 2019 } |
2015 | 2020 |
2016 } // namespace testing | 2021 } // namespace testing |
2017 | 2022 |
2018 } // namespace about_flags | 2023 } // namespace about_flags |
OLD | NEW |