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

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

Issue 2780823002: Uses copy request to flatten the layers to do screen rotation animation. (Closed)
Patch Set: Remove duplicated entry in flags. Created 3 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
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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 2471 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 kDelayNavigationFeatureVariations, 2482 kDelayNavigationFeatureVariations,
2483 "DelayNavigation")}, 2483 "DelayNavigation")},
2484 2484
2485 #if defined(OS_ANDROID) 2485 #if defined(OS_ANDROID)
2486 {"enable-custom-context-menu", 2486 {"enable-custom-context-menu",
2487 flag_descriptions::kEnableCustomContextMenuName, 2487 flag_descriptions::kEnableCustomContextMenuName,
2488 flag_descriptions::kEnableCustomContextMenuDescription, kOsAndroid, 2488 flag_descriptions::kEnableCustomContextMenuDescription, kOsAndroid,
2489 FEATURE_VALUE_TYPE(chrome::android::kCustomContextMenu)}, 2489 FEATURE_VALUE_TYPE(chrome::android::kCustomContextMenu)},
2490 #endif // OS_ANDROID 2490 #endif // OS_ANDROID
2491 2491
2492 #if defined(USE_ASH)
2493 {"ash-enable-smooth-screen-rotation-animation",
2494 flag_descriptions::kAshEnableSmoothScreenRotationAnimationName,
2495 flag_descriptions::kAshEnableSmoothScreenRotationAnimationDescription,
2496 kOsCrOS,
2497 SINGLE_VALUE_TYPE(ash::switches::kAshEnableSmoothScreenRotationAnimation)},
2498 #endif // defined(USE_ASH)
2499
2492 // NOTE: Adding new command-line switches requires adding corresponding 2500 // NOTE: Adding new command-line switches requires adding corresponding
2493 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2501 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2494 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2502 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2495 }; 2503 };
2496 2504
2497 class FlagsStateSingleton { 2505 class FlagsStateSingleton {
2498 public: 2506 public:
2499 FlagsStateSingleton() 2507 FlagsStateSingleton()
2500 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2508 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2501 ~FlagsStateSingleton() {} 2509 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2698 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2691 2699
2692 const FeatureEntry* GetFeatureEntries(size_t* count) { 2700 const FeatureEntry* GetFeatureEntries(size_t* count) {
2693 *count = arraysize(kFeatureEntries); 2701 *count = arraysize(kFeatureEntries);
2694 return kFeatureEntries; 2702 return kFeatureEntries;
2695 } 2703 }
2696 2704
2697 } // namespace testing 2705 } // namespace testing
2698 2706
2699 } // namespace about_flags 2707 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698