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

Side by Side Diff: chrome/browser/ui/views/harmony/layout_delegate.cc

Issue 2654123004: harmony: partly harmonize permissions bubble (Closed)
Patch Set: Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ui/views/harmony/layout_delegate.h" 5 #include "chrome/browser/ui/views/harmony/layout_delegate.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/ui/views/harmony/harmony_layout_delegate.h" 9 #include "chrome/browser/ui/views/harmony/harmony_layout_delegate.h"
10 #include "ui/base/material_design/material_design_controller.h" 10 #include "ui/base/material_design/material_design_controller.h"
(...skipping 24 matching lines...) Expand all
35 case LayoutDistanceType::UNRELATED_CONTROL_VERTICAL_SPACING: 35 case LayoutDistanceType::UNRELATED_CONTROL_VERTICAL_SPACING:
36 return views::kUnrelatedControlVerticalSpacing; 36 return views::kUnrelatedControlVerticalSpacing;
37 case LayoutDistanceType::UNRELATED_CONTROL_LARGE_VERTICAL_SPACING: 37 case LayoutDistanceType::UNRELATED_CONTROL_LARGE_VERTICAL_SPACING:
38 return views::kUnrelatedControlLargeVerticalSpacing; 38 return views::kUnrelatedControlLargeVerticalSpacing;
39 case LayoutDistanceType::BUTTON_VEDGE_MARGIN_NEW: 39 case LayoutDistanceType::BUTTON_VEDGE_MARGIN_NEW:
40 return views::kButtonVEdgeMarginNew; 40 return views::kButtonVEdgeMarginNew;
41 case LayoutDistanceType::BUTTON_HEDGE_MARGIN_NEW: 41 case LayoutDistanceType::BUTTON_HEDGE_MARGIN_NEW:
42 return views::kButtonHEdgeMarginNew; 42 return views::kButtonHEdgeMarginNew;
43 case LayoutDistanceType::CHECKBOX_INDENT: 43 case LayoutDistanceType::CHECKBOX_INDENT:
44 return views::kCheckboxIndent; 44 return views::kCheckboxIndent;
45 case LayoutDistanceType::ITEM_LABEL_SPACING:
46 return views::kItemLabelSpacing;
45 } 47 }
46 NOTREACHED(); 48 NOTREACHED();
47 return 0; 49 return 0;
48 } 50 }
49 51
50 views::GridLayout::Alignment LayoutDelegate::GetControlLabelGridAlignment() 52 views::GridLayout::Alignment LayoutDelegate::GetControlLabelGridAlignment()
51 const { 53 const {
52 return views::GridLayout::TRAILING; 54 return views::GridLayout::TRAILING;
53 } 55 }
54 56
55 bool LayoutDelegate::UseExtraDialogPadding() const { 57 bool LayoutDelegate::UseExtraDialogPadding() const {
56 return true; 58 return true;
57 } 59 }
58 60
59 bool LayoutDelegate::IsHarmonyMode() const { 61 bool LayoutDelegate::IsHarmonyMode() const {
60 return false; 62 return false;
61 } 63 }
62 64
63 int LayoutDelegate::GetDialogPreferredWidth(DialogWidthType type) const { 65 int LayoutDelegate::GetDialogPreferredWidth(DialogWidthType type) const {
64 return 0; 66 return 0;
65 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698