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

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

Issue 2511163002: harmony: convert collected cookies dialog (Closed)
Patch Set: remove ?: Created 4 years, 1 month 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
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 4988344b98b6c323edd062d3ee036b95eab3363d..f077d3b839d12a72b21bf344cbc82dcb5c8edc92 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
@@ -42,3 +42,20 @@ int HarmonyLayoutDelegate::GetLayoutDistance(LayoutDistanceType type) const {
bool HarmonyLayoutDelegate::UseExtraDialogPadding() const {
return false;
}
+
+bool HarmonyLayoutDelegate::IsHarmonyMode() const {
+ return true;
+}
+
+int HarmonyLayoutDelegate::GetDialogPreferredWidth(DialogWidthType type) const {
+ switch (type) {
+ case DialogWidthType::SMALL:
+ return 320;
+ case DialogWidthType::MEDIUM:
+ return 448;
+ case DialogWidthType::LARGE:
+ return 512;
+ }
+ NOTREACHED();
+ return 0;
+}
« no previous file with comments | « chrome/browser/ui/views/harmony/harmony_layout_delegate.h ('k') | chrome/browser/ui/views/harmony/layout_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698