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

Unified Diff: chrome/browser/ui/constrained_window_constants.h

Issue 11077006: Correct padding and focus ring for frameless constrained window dialog (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix license header Created 8 years, 2 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/constrained_window.h ('k') | chrome/browser/ui/views/constrained_window_frame_simple.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/constrained_window_constants.h
diff --git a/chrome/browser/ui/constrained_window_constants.h b/chrome/browser/ui/constrained_window_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d9d9efc6190c6b6de11f3a7ddaa49ae758bed64
--- /dev/null
+++ b/chrome/browser/ui/constrained_window_constants.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_CONSTRAINED_WINDOW_CONSTANTS_H_
+#define CHROME_BROWSER_UI_CONSTRAINED_WINDOW_CONSTANTS_H_
+
+///////////////////////////////////////////////////////////////////////////////
+// ConstrainedWindowConstants
+//
+// Style hints shared among platforms.
+//
+class ConstrainedWindowConstants {
+ public:
+ static const int kTitleTopPadding = 15; // Padding above the title.
+ static const int kHorizontalPadding = 20; // Left and right padding.
+ static const int kClientTopPadding = 18; // Padding above the client view.
+ static const int kClientBottomPadding = 20; // Padding below the client view.
+ static const int kCloseButtonPadding = 7; // Padding around the close button.
+ static const int kBorderRadius = 2; // Border radius for dialog corners.
+ static const int kRowPadding = 20; // Padding between rows of text.
+
+ // Font style for dialog text.
+ static const ui::ResourceBundle::FontStyle kTextFontStyle =
+ ui::ResourceBundle::BaseFont;
+ // Font style for bold dialog text.
+ static const ui::ResourceBundle::FontStyle kBoldTextFontStyle =
+ ui::ResourceBundle::BoldFont;
+ // Font style for dialog title.
+ static const ui::ResourceBundle::FontStyle kTitleFontStyle =
+ ui::ResourceBundle::MediumFont;
+};
+
+#endif // CHROME_BROWSER_UI_CONSTRAINED_WINDOW_CONSTANTS_H_
« no previous file with comments | « chrome/browser/ui/constrained_window.h ('k') | chrome/browser/ui/views/constrained_window_frame_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698