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

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

Issue 1236533004: cc: Change max_tiles_for_interest_rect to be screen pixels padding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 data_reduction_proxy::switches::kDataReductionProxyLoFiValueAlwaysOn}, 227 data_reduction_proxy::switches::kDataReductionProxyLoFiValueAlwaysOn},
228 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_CELLULAR_ONLY, 228 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_CELLULAR_ONLY,
229 data_reduction_proxy::switches::kDataReductionProxyLoFi, 229 data_reduction_proxy::switches::kDataReductionProxyLoFi,
230 data_reduction_proxy::switches:: 230 data_reduction_proxy::switches::
231 kDataReductionProxyLoFiValueCellularOnly}, 231 kDataReductionProxyLoFiValueCellularOnly},
232 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_DISABLED, 232 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_DISABLED,
233 data_reduction_proxy::switches::kDataReductionProxyLoFi, 233 data_reduction_proxy::switches::kDataReductionProxyLoFi,
234 data_reduction_proxy::switches::kDataReductionProxyLoFiValueDisabled} 234 data_reduction_proxy::switches::kDataReductionProxyLoFiValueDisabled}
235 }; 235 };
236 236
237 const Experiment::Choice kMaxTilesForInterestAreaChoices[] = {
238 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
239 { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_SHORT,
240 cc::switches::kMaxTilesForInterestArea, "64"},
241 { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_TALL,
242 cc::switches::kMaxTilesForInterestArea, "128"},
243 { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_GRANDE,
244 cc::switches::kMaxTilesForInterestArea, "256"},
245 { IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_VENTI,
246 cc::switches::kMaxTilesForInterestArea, "512"}
247 };
248
249 const Experiment::Choice kShowSavedCopyChoices[] = { 237 const Experiment::Choice kShowSavedCopyChoices[] = {
250 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 238 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
251 { IDS_FLAGS_ENABLE_SHOW_SAVED_COPY_PRIMARY, 239 { IDS_FLAGS_ENABLE_SHOW_SAVED_COPY_PRIMARY,
252 switches::kShowSavedCopy, switches::kEnableShowSavedCopyPrimary }, 240 switches::kShowSavedCopy, switches::kEnableShowSavedCopyPrimary },
253 { IDS_FLAGS_ENABLE_SHOW_SAVED_COPY_SECONDARY, 241 { IDS_FLAGS_ENABLE_SHOW_SAVED_COPY_SECONDARY,
254 switches::kShowSavedCopy, switches::kEnableShowSavedCopySecondary }, 242 switches::kShowSavedCopy, switches::kEnableShowSavedCopySecondary },
255 { IDS_FLAGS_DISABLE_SHOW_SAVED_COPY, 243 { IDS_FLAGS_DISABLE_SHOW_SAVED_COPY,
256 switches::kShowSavedCopy, switches::kDisableShowSavedCopy } 244 switches::kShowSavedCopy, switches::kDisableShowSavedCopy }
257 }; 245 };
258 246
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableLCDText, 1188 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableLCDText,
1201 switches::kDisableLCDText)}, 1189 switches::kDisableLCDText)},
1202 #if defined(OS_ANDROID) || defined(OS_MACOSX) 1190 #if defined(OS_ANDROID) || defined(OS_MACOSX)
1203 {"delegated-renderer", 1191 {"delegated-renderer",
1204 IDS_FLAGS_DELEGATED_RENDERER_NAME, 1192 IDS_FLAGS_DELEGATED_RENDERER_NAME,
1205 IDS_FLAGS_DELEGATED_RENDERER_DESCRIPTION, 1193 IDS_FLAGS_DELEGATED_RENDERER_DESCRIPTION,
1206 kOsAndroid, // TODO(ccameron) Add mac support soon. 1194 kOsAndroid, // TODO(ccameron) Add mac support soon.
1207 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableDelegatedRenderer, 1195 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableDelegatedRenderer,
1208 switches::kDisableDelegatedRenderer)}, 1196 switches::kDisableDelegatedRenderer)},
1209 #endif 1197 #endif
1210 {"max-tiles-for-interest-area",
1211 IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_NAME,
1212 IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_DESCRIPTION,
1213 kOsAll,
1214 MULTI_VALUE_TYPE(kMaxTilesForInterestAreaChoices)},
1215 {"enable-offer-store-unmasked-wallet-cards", 1198 {"enable-offer-store-unmasked-wallet-cards",
1216 IDS_FLAGS_ENABLE_OFFER_STORE_UNMASKED_WALLET_CARDS, 1199 IDS_FLAGS_ENABLE_OFFER_STORE_UNMASKED_WALLET_CARDS,
1217 IDS_FLAGS_ENABLE_OFFER_STORE_UNMASKED_WALLET_CARDS_DESCRIPTION, 1200 IDS_FLAGS_ENABLE_OFFER_STORE_UNMASKED_WALLET_CARDS_DESCRIPTION,
1218 kOsAll, 1201 kOsAll,
1219 ENABLE_DISABLE_VALUE_TYPE( 1202 ENABLE_DISABLE_VALUE_TYPE(
1220 autofill::switches::kEnableOfferStoreUnmaskedWalletCards, 1203 autofill::switches::kEnableOfferStoreUnmaskedWalletCards,
1221 autofill::switches::kDisableOfferStoreUnmaskedWalletCards)}, 1204 autofill::switches::kDisableOfferStoreUnmaskedWalletCards)},
1222 {"enable-offline-auto-reload", 1205 {"enable-offline-auto-reload",
1223 IDS_FLAGS_ENABLE_OFFLINE_AUTO_RELOAD_NAME, 1206 IDS_FLAGS_ENABLE_OFFLINE_AUTO_RELOAD_NAME,
1224 IDS_FLAGS_ENABLE_OFFLINE_AUTO_RELOAD_DESCRIPTION, 1207 IDS_FLAGS_ENABLE_OFFLINE_AUTO_RELOAD_DESCRIPTION,
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
2718 } 2701 }
2719 2702
2720 const Experiment* GetExperiments(size_t* count) { 2703 const Experiment* GetExperiments(size_t* count) {
2721 *count = num_experiments; 2704 *count = num_experiments;
2722 return experiments; 2705 return experiments;
2723 } 2706 }
2724 2707
2725 } // namespace testing 2708 } // namespace testing
2726 2709
2727 } // namespace about_flags 2710 } // 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