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

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: Move IsTypePanel() logic out of BrowserTitlebar 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
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..773cbf5d045e8665c794b7cad75dc0fa41202890 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -1819,7 +1819,7 @@ void BrowserWindowGtk::InitWidgets() {
tabstrip_->Init();
// Build the titlebar (tabstrip + header space + min/max/close buttons).
- titlebar_.reset(new BrowserTitlebar(this, window_));
+ titlebar_.reset(CreateBrowserTitlebar());
// Insert the tabstrip into the window.
gtk_box_pack_start(GTK_BOX(window_vbox_), titlebar_->widget(), FALSE, FALSE,
@@ -2454,6 +2454,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;

Powered by Google App Engine
This is Rietveld 408576698