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

Unified Diff: chrome/browser/ui/panels/panel_browser_titlebar_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
Index: chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc
diff --git a/chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc b/chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d1ab454a8f43f17f817f4ff73f1875f9d65002a4
--- /dev/null
+++ b/chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/panels/panel_browser_titlebar_gtk.h"
+
+PanelBrowserTitlebarGtk::PanelBrowserTitlebarGtk(
+ BrowserWindowGtk* browser_window, GtkWindow* window)
+ : BrowserTitlebar(browser_window, window) {
+
+}
+
+PanelBrowserTitlebarGtk::~PanelBrowserTitlebarGtk() {
+}
+
+bool PanelBrowserTitlebarGtk::BuildButton(const std::string& button_token,
+ bool left_side) {
+ // Panel only shows close button.
+ if (button_token != "close")
+ return false;
+
+ return BrowserTitlebar::BuildButton(button_token, left_side);
+}
+
+void PanelBrowserTitlebarGtk::ShowFaviconMenu(GdkEventButton* event) {
+ // Favicon menu is not supported in panels.
+}
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_titlebar_gtk.h ('k') | chrome/browser/ui/panels/panel_browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698