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

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

Issue 2571613002: Convert Register Protocol Handler dialog for Harmony/Material Design (Closed)
Patch Set: More fixed nits Created 3 years, 11 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/cookie_info_view.cc ('k') | chrome/browser/ui/views/harmony/layout_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
diff --git a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
index 800266728f3af632b9830dd402a0872d98c8d669..d3eaa40902ad20d5de1aa1e8b8d5207773d53337 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
@@ -17,6 +17,8 @@ HarmonyLayoutDelegate* HarmonyLayoutDelegate::Get() {
int HarmonyLayoutDelegate::GetLayoutDistance(LayoutDistanceType type) const {
switch (type) {
+ case LayoutDistanceType::PANEL_HORIZ_MARGIN:
+ return kHarmonyLayoutUnit;
case LayoutDistanceType::PANEL_VERT_MARGIN:
return kHarmonyLayoutUnit;
case LayoutDistanceType::RELATED_BUTTON_HORIZONTAL_SPACING:
@@ -33,6 +35,8 @@ int HarmonyLayoutDelegate::GetLayoutDistance(LayoutDistanceType type) const {
return kHarmonyLayoutUnit;
case LayoutDistanceType::BUTTON_HEDGE_MARGIN_NEW:
return kHarmonyLayoutUnit;
+ case LayoutDistanceType::CHECKBOX_INDENT:
+ return 0;
}
NOTREACHED();
return 0;
« no previous file with comments | « chrome/browser/ui/views/cookie_info_view.cc ('k') | chrome/browser/ui/views/harmony/layout_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698