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

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

Issue 173803002: Redesigns the text input focus handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reset the text input client in FocusController. Created 6 years, 8 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 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 }, 1779 },
1780 #if defined(OS_CHROMEOS) 1780 #if defined(OS_CHROMEOS)
1781 { 1781 {
1782 "enable-filemanager-mtp", 1782 "enable-filemanager-mtp",
1783 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_NAME, 1783 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_NAME,
1784 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_DESCRIPTION, 1784 IDS_FLAGS_ENABLE_FILE_MANAGER_MTP_DESCRIPTION,
1785 kOsCrOS, 1785 kOsCrOS,
1786 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFileManagerMTP) 1786 SINGLE_VALUE_TYPE(chromeos::switches::kEnableFileManagerMTP)
1787 }, 1787 },
1788 #endif 1788 #endif
1789 #if defined(USE_AURA)
1790 {
1791 "text-input-focus-manager",
1792 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_NAME,
1793 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_DESCRIPTION,
1794 kOsCrOS | kOsLinux | kOsWin,
1795 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTextInputFocusManager,
1796 switches::kDisableTextInputFocusManager)
1797 },
1798 #endif
1789 }; 1799 };
1790 1800
1791 const Experiment* experiments = kExperiments; 1801 const Experiment* experiments = kExperiments;
1792 size_t num_experiments = arraysize(kExperiments); 1802 size_t num_experiments = arraysize(kExperiments);
1793 1803
1794 // Stores and encapsulates the little state that about:flags has. 1804 // Stores and encapsulates the little state that about:flags has.
1795 class FlagsState { 1805 class FlagsState {
1796 public: 1806 public:
1797 FlagsState() : needs_restart_(false) {} 1807 FlagsState() : needs_restart_(false) {}
1798 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1808 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 } 2313 }
2304 2314
2305 const Experiment* GetExperiments(size_t* count) { 2315 const Experiment* GetExperiments(size_t* count) {
2306 *count = num_experiments; 2316 *count = num_experiments;
2307 return experiments; 2317 return experiments;
2308 } 2318 }
2309 2319
2310 } // namespace testing 2320 } // namespace testing
2311 2321
2312 } // namespace about_flags 2322 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698