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

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

Issue 10264019: Support for cros touchpad 3-finger click as middle button. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/preferences.h » ('j') | 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 kOsAll, 678 kOsAll,
679 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*") 679 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*")
680 }, 680 },
681 { 681 {
682 "default-device-scale-factor", 682 "default-device-scale-factor",
683 IDS_FLAGS_FORCE_HIGH_DPI_NAME, 683 IDS_FLAGS_FORCE_HIGH_DPI_NAME,
684 IDS_FLAGS_FORCE_HIGH_DPI_DESCRIPTION, 684 IDS_FLAGS_FORCE_HIGH_DPI_DESCRIPTION,
685 kOsCrOS, 685 kOsCrOS,
686 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDefaultDeviceScaleFactor, "2") 686 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDefaultDeviceScaleFactor, "2")
687 }, 687 },
688 #if defined(OS_CHROMEOS)
689 {
690 "allow-touchpad-three-finger-click",
691 IDS_FLAGS_ALLOW_TOUCHPAD_THREE_FINGER_CLICK_NAME,
692 IDS_FLAGS_ALLOW_TOUCHPAD_THREE_FINGER_CLICK_DESCRIPTION,
693 kOsCrOS,
694 SINGLE_VALUE_TYPE(switches::kEnableTouchpadThreeFingerClick)
695 },
696 #endif
688 }; 697 };
689 698
690 const Experiment* experiments = kExperiments; 699 const Experiment* experiments = kExperiments;
691 size_t num_experiments = arraysize(kExperiments); 700 size_t num_experiments = arraysize(kExperiments);
692 701
693 // Stores and encapsulates the little state that about:flags has. 702 // Stores and encapsulates the little state that about:flags has.
694 class FlagsState { 703 class FlagsState {
695 public: 704 public:
696 FlagsState() : needs_restart_(false) {} 705 FlagsState() : needs_restart_(false) {}
697 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 706 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 } 1122 }
1114 1123
1115 const Experiment* GetExperiments(size_t* count) { 1124 const Experiment* GetExperiments(size_t* count) {
1116 *count = num_experiments; 1125 *count = num_experiments;
1117 return experiments; 1126 return experiments;
1118 } 1127 }
1119 1128
1120 } // namespace testing 1129 } // namespace testing
1121 1130
1122 } // namespace about_flags 1131 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698