Commit c0c50a02 authored by groby@chromium.org's avatar groby@chromium.org

Initial constants for new ConstrainedWindow style.


BUG=134584


Review URL: https://chromiumcodereview.appspot.com/10852015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152039 0039d316-1c4b-4281-b951-d872f2087c98
parent f301dac0
...@@ -6,6 +6,14 @@ ...@@ -6,6 +6,14 @@
#include "base/logging.h" #include "base/logging.h"
SkColor ConstrainedWindow::GetBackgroundColor() {
return SkColorSetRGB(0xfb, 0xfb, 0xfb);
}
SkColor ConstrainedWindow::GetTextColor() {
return SkColorSetRGB(0x33, 0x33, 0x33);
}
void ConstrainedWindow::FocusConstrainedWindow() { void ConstrainedWindow::FocusConstrainedWindow() {
} }
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
#define CHROME_BROWSER_UI_CONSTRAINED_WINDOW_H_ #define CHROME_BROWSER_UI_CONSTRAINED_WINDOW_H_
#include "build/build_config.h" #include "build/build_config.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/native_widget_types.h" #include "ui/gfx/native_widget_types.h"
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
...@@ -16,6 +18,21 @@ ...@@ -16,6 +18,21 @@
// //
class ConstrainedWindow { class ConstrainedWindow {
public: public:
static const int kVerticalPadding = 14; // top/bottom padding.
static const int kHorizontalPadding = 17; // left/right padding.
static const int kRowPadding = 20; // Vertical margin between dialog rows.
static const int kBorderRadius = 2; // Border radius for dialog corners.
// Font style for dialog text.
static const ui::ResourceBundle::FontStyle kTextFontStyle =
ui::ResourceBundle::BaseFont;
// Font style for dialog title.
static const ui::ResourceBundle::FontStyle kTitleFontStyle =
ui::ResourceBundle::MediumFont;
SkColor GetBackgroundColor(); // Dialog background color.
SkColor GetTextColor(); // Dialog text color.
// Makes the Constrained Window visible. Only one Constrained Window is shown // Makes the Constrained Window visible. Only one Constrained Window is shown
// at a time per tab. // at a time per tab.
virtual void ShowConstrainedWindow() = 0; virtual void ShowConstrainedWindow() = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment