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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/panels/panel_browser_titlebar_gtk.h"
6
7 PanelBrowserTitlebarGtk::PanelBrowserTitlebarGtk(
8 BrowserWindowGtk* browser_window, GtkWindow* window)
9 : BrowserTitlebar(browser_window, window) {
10
11 }
12
13 PanelBrowserTitlebarGtk::~PanelBrowserTitlebarGtk() {
14 }
15
16 bool PanelBrowserTitlebarGtk::BuildButton(const std::string& button_token,
17 bool left_side) {
18 // Panel only shows close button.
19 if (button_token != "close")
20 return false;
21
22 return BrowserTitlebar::BuildButton(button_token, left_side);
23 }
24
25 void PanelBrowserTitlebarGtk::ShowFaviconMenu(GdkEventButton* event) {
26 // Favicon menu is not supported in panels.
27 }
OLDNEW
« 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