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

Unified Diff: chrome/browser/ui/views/harmony/harmony_layout_provider.cc

Issue 2815713004: Harmony - Dialog-specific conversion for Add to Desktop. (Closed)
Patch Set: fix merge with allen's patch 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/harmony/chrome_layout_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/harmony/harmony_layout_provider.cc
diff --git a/chrome/browser/ui/views/harmony/harmony_layout_provider.cc b/chrome/browser/ui/views/harmony/harmony_layout_provider.cc
index 9e1c85e4dd0c092e03c8effb838954f3eb8ca2c8..3a9a0d58fa59b158a4137a251e55ab7a832696e3 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_provider.cc
+++ b/chrome/browser/ui/views/harmony/harmony_layout_provider.cc
@@ -27,6 +27,8 @@ gfx::Insets HarmonyLayoutProvider::GetInsetsMetric(int metric) const {
int HarmonyLayoutProvider::GetDistanceMetric(int metric) const {
DCHECK_GE(metric, views::VIEWS_INSETS_MAX);
switch (metric) {
+ case DISTANCE_CONTROL_LIST_VERTICAL:
+ return kHarmonyLayoutUnit * 3 / 4;
case views::DISTANCE_CLOSE_BUTTON_MARGIN: {
constexpr int kVisibleMargin = kHarmonyLayoutUnit / 2;
// The visible margin is based on the unpadded size, so to get the actual
« no previous file with comments | « chrome/browser/ui/views/harmony/chrome_layout_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698