summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/theme_install_bubble_view.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-15 15:55:33 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-15 15:55:33 +0000
commita99f5b8a912687a14a2cf0a5aede7ffc2eef8c8a (patch)
treefcb25e0363ba46c02e8ee1a2aa474b269c67f823 /chrome/browser/views/theme_install_bubble_view.cc
parent9973ceb80aa79dc730b9f39e9666a7ad28130d39 (diff)
downloadchromium_src-a99f5b8a912687a14a2cf0a5aede7ffc2eef8c8a.zip
chromium_src-a99f5b8a912687a14a2cf0a5aede7ffc2eef8c8a.tar.gz
chromium_src-a99f5b8a912687a14a2cf0a5aede7ffc2eef8c8a.tar.bz2
Show "Loading" bubble while loading a theme.
BUG=http://crbug.com/22219 TEST=load a theme, see "Loading..." Review URL: http://codereview.chromium.org/267031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/theme_install_bubble_view.cc')
-rw-r--r--chrome/browser/views/theme_install_bubble_view.cc18
1 files changed, 12 insertions, 6 deletions
diff --git a/chrome/browser/views/theme_install_bubble_view.cc b/chrome/browser/views/theme_install_bubble_view.cc
index 7470280..e305cd0 100644
--- a/chrome/browser/views/theme_install_bubble_view.cc
+++ b/chrome/browser/views/theme_install_bubble_view.cc
@@ -8,13 +8,18 @@
#include "grit/generated_resources.h"
namespace {
- // Padding around text in popup box.
- static const int kTextHorizPadding = 90;
- static const int kTextVertPadding = 45;
- // Multiple loads can be started at once. Only show one bubble, and keep
- // track of number of loads happening. Close bubble when num_loads < 1.
- static int num_loads_extant_ = 0;
+// The roundedness of the edges of our bubble.
+static const int kBubbleCornerRadius = 4;
+
+// Padding around text in popup box.
+static const int kTextHorizPadding = 90;
+static const int kTextVertPadding = 45;
+
+// Multiple loads can be started at once. Only show one bubble, and keep
+// track of number of loads happening. Close bubble when num_loads < 1.
+static int num_loads_extant_ = 0;
+
}
ThemeInstallBubbleView::ThemeInstallBubbleView(TabContents* tab_contents)
@@ -22,6 +27,7 @@ ThemeInstallBubbleView::ThemeInstallBubbleView(TabContents* tab_contents)
if (!tab_contents)
Close();
+ // Need our own copy of the "Loading..." string: http://crbug.com/24177
text_ = l10n_util::GetStringUTF16(IDS_TAB_LOADING_TITLE);
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
gfx::Font font(rb.GetFont(ResourceBundle::LargeFont));