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

Unified Diff: chrome/browser/chromeos/ui/idle_logout_dialog_view.cc

Issue 10384114: Added BGRA support to qcms. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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/chromeos/ui/idle_logout_dialog_view.h ('k') | third_party/qcms/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ui/idle_logout_dialog_view.cc
diff --git a/chrome/browser/chromeos/ui/idle_logout_dialog_view.cc b/chrome/browser/chromeos/ui/idle_logout_dialog_view.cc
index bc916f60eba7104ae67eb3634f21a01f9608694b..4273d36466233484d3a6e8516164afc1e029e6eb 100644
--- a/chrome/browser/chromeos/ui/idle_logout_dialog_view.cc
+++ b/chrome/browser/chromeos/ui/idle_logout_dialog_view.cc
@@ -9,7 +9,6 @@
#include "base/bind_helpers.h"
#include "base/time.h"
#include "base/string_number_conversions.h"
-#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h"
#include "chrome/browser/ui/browser_list.h"
#include "chromeos/dbus/dbus_thread_manager.h"
@@ -28,7 +27,7 @@ namespace {
// Global singleton instance of our dialog class.
chromeos::IdleLogoutDialogView* g_instance = NULL;
-const int kIdleLogoutDialogMaxWidth = 300;
+const int kIdleLogoutDialogMaxWidth = 400;
const int kCountdownUpdateIntervalMs = 1000;
} // namespace
@@ -100,6 +99,7 @@ views::View* IdleLogoutDialogView::GetContentsView() {
// IdleLogoutDialog private methods
IdleLogoutDialogView::IdleLogoutDialogView()
: restart_label_(NULL),
+ warning_label_(NULL),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
if (!IdleLogoutDialogView::provider_)
IdleLogoutDialogView::provider_ = new IdleLogoutSettingsProvider();
@@ -121,24 +121,30 @@ void IdleLogoutDialogView::InitAndShow() {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
+ warning_label_ = new views::Label(
+ l10n_util::GetStringUTF16(IDS_IDLE_LOGOUT_WARNING));
+ warning_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ warning_label_->SetMultiLine(true);
+ warning_label_->SetFont(rb.GetFont(ui::ResourceBundle::BaseFont));
+ warning_label_->SizeToFit(kIdleLogoutDialogMaxWidth);
+
restart_label_ = new views::Label();
restart_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
- restart_label_->SetMultiLine(true);
- restart_label_->SetFont(rb.GetFont(ui::ResourceBundle::BaseFont));
+ restart_label_->SetFont(rb.GetFont(ui::ResourceBundle::BoldFont));
views::GridLayout* layout = views::GridLayout::CreatePanel(this);
SetLayoutManager(layout);
views::ColumnSet* column_set = layout->AddColumnSet(0);
column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::CENTER, 1,
- views::GridLayout::FIXED, kIdleLogoutDialogMaxWidth, 0);
+ views::GridLayout::USE_PREF, 0, 0);
layout->StartRow(0, 0);
- layout->AddPaddingRow(0, views::kRelatedControlHorizontalSpacing);
+ layout->AddView(warning_label_);
+ layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing);
layout->StartRow(0, 0);
layout->AddView(restart_label_);
- layout->AddPaddingRow(0, views::kRelatedControlHorizontalSpacing);
- // We're initialized, show the dialog.
+ // We're initialized, can safely show the dialog now.
Show();
}
« no previous file with comments | « chrome/browser/chromeos/ui/idle_logout_dialog_view.h ('k') | third_party/qcms/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698