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

Side by Side Diff: chrome/browser/ui/gtk/browser_titlebar_base.h

Issue 10483010: Change the visual appearance of panel on GTK per new UI design. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Created 8 years, 6 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_BASE_H_
6 #define CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_BASE_H_
7 #pragma once
8
9 #include <gtk/gtk.h>
10
11 #include "base/compiler_specific.h"
12
13 class AvatarMenuButtonGtk;
14
15 namespace content {
16 class WebContents;
17 }
18
19 class BrowserTitlebarBase {
jennb 2012/06/04 22:17:52 Is there anything browser-specific about this titl
jianli 2012/06/05 18:48:30 This base file is a temporary solution so that Bro
20 public:
21 virtual ~BrowserTitlebarBase() { }
22
23 // Build the titlebar, the space above the tab strip, and (maybe) the min,
jennb 2012/06/04 22:17:52 tab strip is browser-specific. Please put those sp
jianli 2012/06/05 18:48:30 Ditto. I rather keep as it is now so that we can m
24 // max, close buttons.
25 virtual void Init() = 0;
26
27 // Updates the title and icon when in app or popup/panel mode (no tabstrip).
28 virtual void UpdateTitleAndIcon() = 0;
29
30 // Update the appearance of the title bar based on whether we're showing a
31 // custom frame or not. If |use_custom_frame| is true, we show an extra
32 // tall titlebar and the min/max/close buttons.
33 virtual void UpdateCustomFrame(bool use_custom_frame) = 0;
34
35 // Called by the browser asking us to update the loading throbber.
36 // |web_contents| is the tab that is associated with the window throbber.
37 // |web_contents| can be null.
38 virtual void UpdateThrobber(content::WebContents* web_contents) = 0;
39
40 // On Windows, right clicking in the titlebar background brings up the system
41 // menu. There's no such thing on linux, so we just show the menu items we
42 // add to the menu.
43 virtual void ShowContextMenu(GdkEventButton* event) = 0;
44
45 virtual GtkWidget* widget() const = 0;
46 virtual void set_window(GtkWindow* window) = 0;
47 virtual AvatarMenuButtonGtk* avatar_button() const = 0;
48 };
49
50 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TITLEBAR_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698