summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-19 23:54:35 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-19 23:54:35 +0000
commit30bcc77df38a8775b28f6628a6f4270658b171e5 (patch)
tree225e1be3cb6a59fbd280db511941d13ec76c989e /chrome/browser
parentfffc27d58ee6b52ea104b3d29a8a0ab7904410f4 (diff)
downloadchromium_src-30bcc77df38a8775b28f6628a6f4270658b171e5.zip
chromium_src-30bcc77df38a8775b28f6628a6f4270658b171e5.tar.gz
chromium_src-30bcc77df38a8775b28f6628a6f4270658b171e5.tar.bz2
Now have a TextButton rendering (sort of; doesn't respond to mouse events so
I don't know if it'll draw the border correctly). Now with fixes to compile under Windows. Review URL: http://codereview.chromium.org/42427 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12172 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index f938005..43b620e 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -24,6 +24,7 @@
#include "chrome/browser/tab_contents/web_contents.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/resource_bundle.h"
+#include "chrome/views/controls/button/text_button.h"
#include "grit/theme_resources.h"
namespace {
@@ -155,6 +156,9 @@ BrowserWindowGtk::BrowserWindowGtk(Browser* browser)
if (parsed_command_line.HasSwitch(switches::kViewsGtk)) {
experimental_widget_.reset(new views::WidgetGtk());
experimental_widget_->Init(gfx::Rect(), false);
+ experimental_widget_->SetContentsView(
+ new views::TextButton(NULL, L"Button"));
+
gtk_box_pack_start(GTK_BOX(vbox_),
experimental_widget_->GetNativeView(),
false, false, 2);