summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
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);