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

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

Issue 18007003: Web MIDI: chrome://flags to enable Web MIDI API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/app/generated_resources.grd ('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/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 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 SINGLE_VALUE_TYPE(switches::kEnableQuickofficeEdit), 1567 SINGLE_VALUE_TYPE(switches::kEnableQuickofficeEdit),
1568 }, 1568 },
1569 #endif 1569 #endif
1570 { 1570 {
1571 "enable-translate-settings", 1571 "enable-translate-settings",
1572 IDS_FLAGS_ENABLE_TRANSLATE_SETTINGS_NAME, 1572 IDS_FLAGS_ENABLE_TRANSLATE_SETTINGS_NAME,
1573 IDS_FLAGS_ENABLE_TRANSLATE_SETTINGS_DESCRIPTION, 1573 IDS_FLAGS_ENABLE_TRANSLATE_SETTINGS_DESCRIPTION,
1574 kOsAll, 1574 kOsAll,
1575 SINGLE_VALUE_TYPE(switches::kEnableTranslateSettings) 1575 SINGLE_VALUE_TYPE(switches::kEnableTranslateSettings)
1576 }, 1576 },
1577 {
1578 "enable-web-midi",
1579 IDS_FLAGS_ENABLE_WEB_MIDI_NAME,
1580 IDS_FLAGS_ENABLE_WEB_MIDI_DESCRIPTION,
1581 kOsMac,
1582 SINGLE_VALUE_TYPE(switches::kEnableWebMIDI)
1583 },
1577 }; 1584 };
1578 1585
1579 const Experiment* experiments = kExperiments; 1586 const Experiment* experiments = kExperiments;
1580 size_t num_experiments = arraysize(kExperiments); 1587 size_t num_experiments = arraysize(kExperiments);
1581 1588
1582 // Stores and encapsulates the little state that about:flags has. 1589 // Stores and encapsulates the little state that about:flags has.
1583 class FlagsState { 1590 class FlagsState {
1584 public: 1591 public:
1585 FlagsState() : needs_restart_(false) {} 1592 FlagsState() : needs_restart_(false) {}
1586 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1593 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
2058 } 2065 }
2059 2066
2060 const Experiment* GetExperiments(size_t* count) { 2067 const Experiment* GetExperiments(size_t* count) {
2061 *count = num_experiments; 2068 *count = num_experiments;
2062 return experiments; 2069 return experiments;
2063 } 2070 }
2064 2071
2065 } // namespace testing 2072 } // namespace testing
2066 2073
2067 } // namespace about_flags 2074 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698