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

Unified Diff: chrome/browser/ui/views/harmony/layout_delegate.h

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/layout_delegate.h
diff --git a/chrome/browser/ui/views/harmony/layout_delegate.h b/chrome/browser/ui/views/harmony/layout_delegate.h
index 7768753b3ef2bf997534a9c411e79450ec3358f1..beff9d28854a2af1cb80aa967727e33b6962696c 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.h
+++ b/chrome/browser/ui/views/harmony/layout_delegate.h
@@ -20,6 +20,12 @@ class LayoutDelegate {
BUTTON_VEDGE_MARGIN_NEW,
};
+ enum class DialogWidthType {
+ SMALL,
+ MEDIUM,
+ LARGE,
+ };
+
LayoutDelegate() {}
virtual ~LayoutDelegate() {}
@@ -46,6 +52,15 @@ class LayoutDelegate {
// Views for dialogs should not insert extra padding at their own edges.
virtual bool UseExtraDialogPadding() const;
+ // Returns whether Harmony mode is enabled. This method is deprecated and
+ // should only be used in dire circumstances, such as when Harmony specifies a
+ // different distance type than was previously used.
+ virtual bool IsHarmonyMode() const;
+
+ // Returns the preferred width for a dialog of the specified width type. If
+ // there is no preferred width for |type|, returns 0.
+ virtual int GetDialogPreferredWidth(DialogWidthType type) const;
+
private:
DISALLOW_COPY_AND_ASSIGN(LayoutDelegate);
};
« no previous file with comments | « chrome/browser/ui/views/harmony/harmony_layout_delegate.cc ('k') | chrome/browser/ui/views/harmony/layout_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698