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

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

Issue 25904004: Add --disable-compositor-touch-hit-testing flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable touch hit testing flag: fix uninitialized variable Created 7 years, 2 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 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 #endif 1743 #endif
1744 #if defined(OS_CHROMEOS) 1744 #if defined(OS_CHROMEOS)
1745 { 1745 {
1746 "enable-first-run-ui", 1746 "enable-first-run-ui",
1747 IDS_FLAGS_ENABLE_FIRST_RUN_UI_NAME, 1747 IDS_FLAGS_ENABLE_FIRST_RUN_UI_NAME,
1748 IDS_FLAGS_ENABLE_FIRST_RUN_UI_DESCRIPTION, 1748 IDS_FLAGS_ENABLE_FIRST_RUN_UI_DESCRIPTION,
1749 kOsCrOS, 1749 kOsCrOS,
1750 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFirstRunUI) 1750 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFirstRunUI)
1751 }, 1751 },
1752 #endif 1752 #endif
1753 {
1754 "disable-compositor-touch-hit-testing",
1755 IDS_FLAGS_DISABLE_COMPOSITOR_TOUCH_HIT_TESTING_NAME,
1756 IDS_FLAGS_DISABLE_COMPOSITOR_TOUCH_HIT_TESTING_DESCRIPTION,
1757 kOsAll,
1758 SINGLE_VALUE_TYPE(cc::switches::kDisableCompositorTouchHitTesting),
1759 },
1753 }; 1760 };
1754 1761
1755 const Experiment* experiments = kExperiments; 1762 const Experiment* experiments = kExperiments;
1756 size_t num_experiments = arraysize(kExperiments); 1763 size_t num_experiments = arraysize(kExperiments);
1757 1764
1758 // Stores and encapsulates the little state that about:flags has. 1765 // Stores and encapsulates the little state that about:flags has.
1759 class FlagsState { 1766 class FlagsState {
1760 public: 1767 public:
1761 FlagsState() : needs_restart_(false) {} 1768 FlagsState() : needs_restart_(false) {}
1762 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1769 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 } 2250 }
2244 2251
2245 const Experiment* GetExperiments(size_t* count) { 2252 const Experiment* GetExperiments(size_t* count) {
2246 *count = num_experiments; 2253 *count = num_experiments;
2247 return experiments; 2254 return experiments;
2248 } 2255 }
2249 2256
2250 } // namespace testing 2257 } // namespace testing
2251 2258
2252 } // namespace about_flags 2259 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698