summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 18:14:35 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 18:14:35 +0000
commit8b3e65e627f962338468e6b6dcf556ccda06a4ac (patch)
treea29b5a3cbecc61c32bee2249bce2509e5c69980b /chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc
parent231e7ad8a7d5c1aab39bb6c4b5142787790d0e5f (diff)
downloadchromium_src-8b3e65e627f962338468e6b6dcf556ccda06a4ac.zip
chromium_src-8b3e65e627f962338468e6b6dcf556ccda06a4ac.tar.gz
chromium_src-8b3e65e627f962338468e6b6dcf556ccda06a4ac.tar.bz2
Add rounded corner support to rounded_window.cc. This only kicks
in if the radius is >= 8, which is the case for the full screen exit bubble. We could tweak the radius needed to trigger this-- I didn't actually test to see what radii looked good and what radii looked bad. BUG=8405 Review URL: http://codereview.chromium.org/505029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc')
-rw-r--r--chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc b/chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc
index c545def..7f90b9a 100644
--- a/chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc
+++ b/chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc
@@ -8,6 +8,7 @@
#include "app/l10n_util.h"
#include "chrome/browser/gtk/gtk_chrome_link_button.h"
#include "chrome/browser/gtk/gtk_floating_container.h"
+#include "chrome/browser/gtk/rounded_window.h"
#include "chrome/common/gtk_util.h"
#include "grit/app_strings.h"
#include "grit/generated_resources.h"
@@ -58,6 +59,9 @@ void FullscreenExitBubbleGtk::InitWidgets() {
alignment_.Own(gtk_util::CreateGtkBorderBin(link, &gfx::kGdkBlack,
kPaddingPixels, kPaddingPixels, kPaddingPixels, kPaddingPixels));
+ gtk_util::ActAsRoundedWindow(alignment_.get(), gfx::kGdkGreen, kPaddingPixels,
+ gtk_util::ROUNDED_BOTTOM_LEFT | gtk_util::ROUNDED_BOTTOM_RIGHT,
+ gtk_util::BORDER_NONE);
gtk_widget_set_name(alignment_.get(), "exit-fullscreen-bubble");
gtk_widget_show_all(alignment_.get());