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

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

Issue 1958293002: Revert "Desktop Capture Picker New UI: Non Mac Structure Change" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 (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 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 IDS_FLAGS_TRY_SUPPORTED_CHANNEL_LAYOUTS_NAME, 1521 IDS_FLAGS_TRY_SUPPORTED_CHANNEL_LAYOUTS_NAME,
1522 IDS_FLAGS_TRY_SUPPORTED_CHANNEL_LAYOUTS_DESCRIPTION, kOsWin, 1522 IDS_FLAGS_TRY_SUPPORTED_CHANNEL_LAYOUTS_DESCRIPTION, kOsWin,
1523 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts)}, 1523 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts)},
1524 #endif 1524 #endif
1525 #if defined(ENABLE_WEBRTC) 1525 #if defined(ENABLE_WEBRTC)
1526 {"enable-webrtc-dtls12", IDS_FLAGS_WEBRTC_DTLS12_NAME, 1526 {"enable-webrtc-dtls12", IDS_FLAGS_WEBRTC_DTLS12_NAME,
1527 IDS_FLAGS_WEBRTC_DTLS12_DESCRIPTION, kOsAll, 1527 IDS_FLAGS_WEBRTC_DTLS12_DESCRIPTION, kOsAll,
1528 SINGLE_VALUE_TYPE(switches::kEnableWebRtcDtls12)}, 1528 SINGLE_VALUE_TYPE(switches::kEnableWebRtcDtls12)},
1529 #endif 1529 #endif
1530 #if defined(ENABLE_WEBRTC) 1530 #if defined(ENABLE_WEBRTC)
1531 {"enable-webrtc-ecdsa", IDS_FLAGS_WEBRTC_ECDSA_NAME, 1531 {"enable-webrtc-ecdsa",
1532 IDS_FLAGS_WEBRTC_ECDSA_NAME,
1532 IDS_FLAGS_WEBRTC_ECDSA_DESCRIPTION, kOsAll, 1533 IDS_FLAGS_WEBRTC_ECDSA_DESCRIPTION, kOsAll,
1533 FEATURE_VALUE_TYPE(features::kWebRtcEcdsaDefault)}, 1534 FEATURE_VALUE_TYPE(features::kWebRtcEcdsaDefault)},
1534 #endif 1535 #endif
1535 #if defined(OS_MACOSX) 1536 #if defined(OS_MACOSX)
1536 {"app-info-dialog", IDS_FLAGS_APP_INFO_DIALOG_NAME, 1537 {"app-info-dialog", IDS_FLAGS_APP_INFO_DIALOG_NAME,
1537 IDS_FLAGS_APP_INFO_DIALOG_DESCRIPTION, kOsMac, 1538 IDS_FLAGS_APP_INFO_DIALOG_DESCRIPTION, kOsMac,
1538 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppInfoDialogMac, 1539 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppInfoDialogMac,
1539 switches::kDisableAppInfoDialogMac)}, 1540 switches::kDisableAppInfoDialogMac)},
1540 {"mac-views-native-app-windows", 1541 {"mac-views-native-app-windows",
1541 IDS_FLAGS_MAC_VIEWS_NATIVE_APP_WINDOWS_NAME, 1542 IDS_FLAGS_MAC_VIEWS_NATIVE_APP_WINDOWS_NAME,
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1764 {"disable-audio-support-for-desktop-share", 1765 {"disable-audio-support-for-desktop-share",
1765 IDS_FLAG_DISABLE_AUDIO_FOR_DESKTOP_SHARE, 1766 IDS_FLAG_DISABLE_AUDIO_FOR_DESKTOP_SHARE,
1766 IDS_FLAG_DISABLE_AUDIO_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll, 1767 IDS_FLAG_DISABLE_AUDIO_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll,
1767 SINGLE_VALUE_TYPE(switches::kDisableAudioSupportForDesktopShare)}, 1768 SINGLE_VALUE_TYPE(switches::kDisableAudioSupportForDesktopShare)},
1768 #if defined(ENABLE_EXTENSIONS) 1769 #if defined(ENABLE_EXTENSIONS)
1769 {"tab-for-desktop-share", IDS_FLAG_DISABLE_TAB_FOR_DESKTOP_SHARE, 1770 {"tab-for-desktop-share", IDS_FLAG_DISABLE_TAB_FOR_DESKTOP_SHARE,
1770 IDS_FLAG_DISABLE_TAB_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll, 1771 IDS_FLAG_DISABLE_TAB_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll,
1771 ENABLE_DISABLE_VALUE_TYPE( 1772 ENABLE_DISABLE_VALUE_TYPE(
1772 extensions::switches::kEnableTabForDesktopShare, 1773 extensions::switches::kEnableTabForDesktopShare,
1773 extensions::switches::kDisableTabForDesktopShare)}, 1774 extensions::switches::kDisableTabForDesktopShare)},
1774 {"disable-desktop-capture-picker-old-ui",
1775 IDS_FLAG_DISABLE_DESKTOP_CAPTURE_PICKER_OLD_UI,
1776 IDS_FLAG_DISABLE_DESKTOP_CAPTURE_PICKER_OLD_UI_DESCRIPTION, kOsAll,
1777 SINGLE_VALUE_TYPE(
1778 extensions::switches::kDisableDesktopCapturePickerOldUI)},
1779 #endif 1775 #endif
1780 #if defined(OS_ANDROID) 1776 #if defined(OS_ANDROID)
1781 {"enable-ntp-snippets", IDS_FLAGS_ENABLE_NTP_SNIPPETS_NAME, 1777 {"enable-ntp-snippets", IDS_FLAGS_ENABLE_NTP_SNIPPETS_NAME,
1782 IDS_FLAGS_ENABLE_NTP_SNIPPETS_DESCRIPTION, kOsAndroid, 1778 IDS_FLAGS_ENABLE_NTP_SNIPPETS_DESCRIPTION, kOsAndroid,
1783 FEATURE_VALUE_TYPE(chrome::android::kNTPSnippetsFeature)}, 1779 FEATURE_VALUE_TYPE(chrome::android::kNTPSnippetsFeature)},
1784 #endif // defined(OS_ANDROID) 1780 #endif // defined(OS_ANDROID)
1785 #if defined(ENABLE_WEBRTC) && BUILDFLAG(RTC_USE_H264) 1781 #if defined(ENABLE_WEBRTC) && BUILDFLAG(RTC_USE_H264)
1786 {"enable-webrtc-h264-with-openh264-ffmpeg", 1782 {"enable-webrtc-h264-with-openh264-ffmpeg",
1787 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_NAME, 1783 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_NAME,
1788 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_DESCRIPTION, kOsDesktop, 1784 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_DESCRIPTION, kOsDesktop,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1837 IDS_FLAGS_GOOGLE_BRANDED_CONTEXT_MENU_DESCRIPTION, kOsDesktop, 1833 IDS_FLAGS_GOOGLE_BRANDED_CONTEXT_MENU_DESCRIPTION, kOsDesktop,
1838 SINGLE_VALUE_TYPE(switches::kEnableGoogleBrandedContextMenu)}, 1834 SINGLE_VALUE_TYPE(switches::kEnableGoogleBrandedContextMenu)},
1839 #endif 1835 #endif
1840 #if defined(OS_MACOSX) 1836 #if defined(OS_MACOSX)
1841 {"enable-fullscreen-in-tab-detaching", 1837 {"enable-fullscreen-in-tab-detaching",
1842 IDS_FLAGS_TAB_DETACHING_IN_FULLSCREEN_NAME, 1838 IDS_FLAGS_TAB_DETACHING_IN_FULLSCREEN_NAME,
1843 IDS_FLAGS_TAB_DETACHING_IN_FULLSCREEN_DESCRIPTION, kOsMac, 1839 IDS_FLAGS_TAB_DETACHING_IN_FULLSCREEN_DESCRIPTION, kOsMac,
1844 SINGLE_VALUE_TYPE(switches::kEnableFullscreenTabDetaching)}, 1840 SINGLE_VALUE_TYPE(switches::kEnableFullscreenTabDetaching)},
1845 #endif 1841 #endif
1846 #if defined(OS_ANDROID) 1842 #if defined(OS_ANDROID)
1847 {"media-style-notification", IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_NAME, 1843 {"media-style-notification",
1844 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_NAME,
1848 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_DESCRIPTION, kOsAndroid, 1845 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_DESCRIPTION, kOsAndroid,
1849 FEATURE_VALUE_TYPE(chrome::android::kMediaStyleNotification)}, 1846 FEATURE_VALUE_TYPE(chrome::android::kMediaStyleNotification)},
1850 {"important-sites-in-cbd", IDS_FLAGS_IMPORTANT_SITES_IN_CBD_NAME, 1847 {"important-sites-in-cbd",
1848 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_NAME,
1851 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_DESCRIPTION, kOsAndroid, 1849 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_DESCRIPTION, kOsAndroid,
1852 FEATURE_VALUE_TYPE(chrome::android::kImportantSitesInCBD)}, 1850 FEATURE_VALUE_TYPE(chrome::android::kImportantSitesInCBD)},
1853 #endif 1851 #endif
1854 {"enable-pointer-events", // FLAGS:RECORD_UMA 1852 {"enable-pointer-events", // FLAGS:RECORD_UMA
1855 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME, 1853 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME,
1856 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, kOsAll, 1854 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION,
1857 FEATURE_VALUE_TYPE(features::kPointerEvents)}, 1855 kOsAll,
1856 FEATURE_VALUE_TYPE(features::kPointerEvents)},
1858 // NOTE: Adding new command-line switches requires adding corresponding 1857 // NOTE: Adding new command-line switches requires adding corresponding
1859 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1858 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1860 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1859 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1861 }; 1860 };
1862 1861
1863 class FlagsStateSingleton { 1862 class FlagsStateSingleton {
1864 public: 1863 public:
1865 FlagsStateSingleton() 1864 FlagsStateSingleton()
1866 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1865 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
1867 ~FlagsStateSingleton() {} 1866 ~FlagsStateSingleton() {}
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2047 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2046 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2048 2047
2049 const FeatureEntry* GetFeatureEntries(size_t* count) { 2048 const FeatureEntry* GetFeatureEntries(size_t* count) {
2050 *count = arraysize(kFeatureEntries); 2049 *count = arraysize(kFeatureEntries);
2051 return kFeatureEntries; 2050 return kFeatureEntries;
2052 } 2051 }
2053 2052
2054 } // namespace testing 2053 } // namespace testing
2055 2054
2056 } // namespace about_flags 2055 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698