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

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

Issue 16535004: Introduce StickyKeys settings item with behind flag. (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
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 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 switches::kHighDPISupport,"0") 1532 switches::kHighDPISupport,"0")
1533 }, 1533 },
1534 #if defined(OS_CHROMEOS) 1534 #if defined(OS_CHROMEOS)
1535 { 1535 {
1536 "enable-quickoffice-editing", 1536 "enable-quickoffice-editing",
1537 IDS_FLAGS_ENABLE_QUICKOFFICE_DESKTOP_EDIT_NAME, 1537 IDS_FLAGS_ENABLE_QUICKOFFICE_DESKTOP_EDIT_NAME,
1538 IDS_FLAGS_ENABLE_QUICKOFFICE_DESKTOP_EDIT_DESCRIPTION, 1538 IDS_FLAGS_ENABLE_QUICKOFFICE_DESKTOP_EDIT_DESCRIPTION,
1539 kOsCrOS, 1539 kOsCrOS,
1540 SINGLE_VALUE_TYPE(switches::kEnableQuickofficeEdit), 1540 SINGLE_VALUE_TYPE(switches::kEnableQuickofficeEdit),
1541 }, 1541 },
1542 {
1543 "enable-sticky-keys",
1544 IDS_FLAGS_ENABLE_STICKY_KEYS_NAME,
1545 IDS_FLAGS_ENABLE_STICKY_KEYS_DESCRIPTION,
1546 kOsCrOS,
1547 SINGLE_VALUE_TYPE(switches::kEnableStickyKeys),
1548 },
1542 #endif 1549 #endif
1543 }; 1550 };
1544 1551
1545 const Experiment* experiments = kExperiments; 1552 const Experiment* experiments = kExperiments;
1546 size_t num_experiments = arraysize(kExperiments); 1553 size_t num_experiments = arraysize(kExperiments);
1547 1554
1548 // Stores and encapsulates the little state that about:flags has. 1555 // Stores and encapsulates the little state that about:flags has.
1549 class FlagsState { 1556 class FlagsState {
1550 public: 1557 public:
1551 FlagsState() : needs_restart_(false) {} 1558 FlagsState() : needs_restart_(false) {}
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 } 2044 }
2038 2045
2039 const Experiment* GetExperiments(size_t* count) { 2046 const Experiment* GetExperiments(size_t* count) {
2040 *count = num_experiments; 2047 *count = num_experiments;
2041 return experiments; 2048 return experiments;
2042 } 2049 }
2043 2050
2044 } // namespace testing 2051 } // namespace testing
2045 2052
2046 } // namespace about_flags 2053 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698