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

Unified Diff: chrome/browser/ui/views/collected_cookies_views.h

Issue 11421164: Migrate CollectedCookiesViews to Chrome style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/collected_cookies_views.h
diff --git a/chrome/browser/ui/views/collected_cookies_views.h b/chrome/browser/ui/views/collected_cookies_views.h
index d06ac12a33ba2de65f314370340a4fe8053285ac..7acfeb53ef2c19f03f0529fe6b90d675611dd72a 100644
--- a/chrome/browser/ui/views/collected_cookies_views.h
+++ b/chrome/browser/ui/views/collected_cookies_views.h
@@ -49,6 +49,9 @@ class CollectedCookiesViews : public views::DialogDelegateView,
virtual int GetDialogButtons() const OVERRIDE;
virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
virtual void DeleteDelegate() OVERRIDE;
+ virtual bool UseChromeStyle() const OVERRIDE;
+ virtual void GetChromeStyleMargins(int* vertical_edge,
+ int* horizontal_edge) const OVERRIDE;
virtual bool Cancel() OVERRIDE;
virtual views::View* GetContentsView() OVERRIDE;
@@ -68,6 +71,10 @@ class CollectedCookiesViews : public views::DialogDelegateView,
views::View* child) OVERRIDE;
private:
+ struct LayoutParams;
+ static const LayoutParams standard_layout_params;
+ static const LayoutParams chrome_style_layout_params;
+
virtual ~CollectedCookiesViews();
void Init();
@@ -76,6 +83,8 @@ class CollectedCookiesViews : public views::DialogDelegateView,
views::View* CreateBlockedPane();
+ views::TextButton* CreateTextButton(const string16& text);
+
void EnableControls();
void ShowCookieInfo();
@@ -114,6 +123,8 @@ class CollectedCookiesViews : public views::DialogDelegateView,
bool status_changed_;
+ const LayoutParams& layout_params_;
+
DISALLOW_COPY_AND_ASSIGN(CollectedCookiesViews);
};
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.cc ('k') | chrome/browser/ui/views/collected_cookies_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698