| OLD | NEW |
| (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 { |
| 20 public: |
| 21 virtual ~BrowserTitlebarBase() { } |
| 22 |
| 23 // Build the titlebar, the space above the tab strip, and (maybe) the min, |
| 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_ |
| OLD | NEW |