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

Unified Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 10169019: Add PanelBrowserTitlebarGtk for panels on GTK. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Patch to land Created 8 years, 8 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/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel_browser_titlebar_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index 2d37e6903e0a6ca2e6dd59f92b17fa832a3bd105..6782e27f2fe0cb38046dbf20eb27ef7052a7b731 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -1819,7 +1819,8 @@ void BrowserWindowGtk::InitWidgets() {
tabstrip_->Init();
// Build the titlebar (tabstrip + header space + min/max/close buttons).
- titlebar_.reset(new BrowserTitlebar(this, window_));
+ titlebar_.reset(CreateBrowserTitlebar());
+ titlebar_->Init();
// Insert the tabstrip into the window.
gtk_box_pack_start(GTK_BOX(window_vbox_), titlebar_->widget(), FALSE, FALSE,
@@ -2454,6 +2455,10 @@ bool BrowserWindowGtk::UsingCustomPopupFrame() const {
(browser()->is_type_popup() || browser()->is_type_panel());
}
+BrowserTitlebar* BrowserWindowGtk::CreateBrowserTitlebar() {
+ return new BrowserTitlebar(this, window_);
+}
+
bool BrowserWindowGtk::GetWindowEdge(int x, int y, GdkWindowEdge* edge) {
if (!UseCustomFrame())
return false;
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel_browser_titlebar_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698