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

Side by Side Diff: chrome/browser/gtk/browser_titlebar.h

Issue 155053: Scroll-wheeling, whilst over the tab-strip, now switches tabs on GTK/Linux. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_titlebar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A helper class that contains the gtk widgets that make up the titlebar. The 5 // A helper class that contains the gtk widgets that make up the titlebar. The
6 // titlebar consists of the tabstrip and if the custom chrome frame is turned 6 // titlebar consists of the tabstrip and if the custom chrome frame is turned
7 // on, it includes the taller titlebar and minimize, restore, maximize, and 7 // on, it includes the taller titlebar and minimize, restore, maximize, and
8 // close buttons. 8 // close buttons.
9 9
10 #ifndef CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ 10 #ifndef CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Update the titlebar spacing based on the custom frame and maximized state. 53 // Update the titlebar spacing based on the custom frame and maximized state.
54 void UpdateTitlebarAlignment(); 54 void UpdateTitlebarAlignment();
55 55
56 // Callback for changes to window state. This includes 56 // Callback for changes to window state. This includes
57 // maximizing/restoring/minimizing the window. 57 // maximizing/restoring/minimizing the window.
58 static gboolean OnWindowStateChanged(GtkWindow* window, 58 static gboolean OnWindowStateChanged(GtkWindow* window,
59 GdkEventWindowState* event, 59 GdkEventWindowState* event,
60 BrowserTitlebar* titlebar); 60 BrowserTitlebar* titlebar);
61 61
62 // Callback for mousewheel events.
63 static gboolean OnScroll(GtkWidget* widget, GdkEventScroll* event,
64 BrowserTitlebar* titlebar);
65
62 // Callback for min/max/close buttons. 66 // Callback for min/max/close buttons.
63 static void OnButtonClicked(GtkWidget* button, BrowserTitlebar* window); 67 static void OnButtonClicked(GtkWidget* button, BrowserTitlebar* window);
64 68
65 // -- Context Menu ----------------------------------------------------------- 69 // -- Context Menu -----------------------------------------------------------
66 70
67 // MenuGtk::Delegate implementation: 71 // MenuGtk::Delegate implementation:
68 virtual bool IsCommandEnabled(int command_id) const; 72 virtual bool IsCommandEnabled(int command_id) const;
69 virtual bool IsItemChecked(int command_id) const; 73 virtual bool IsItemChecked(int command_id) const;
70 virtual void ExecuteCommand(int command_id); 74 virtual void ExecuteCommand(int command_id);
71 75
(...skipping 23 matching lines...) Expand all
95 scoped_ptr<CustomDrawButton> minimize_button_; 99 scoped_ptr<CustomDrawButton> minimize_button_;
96 scoped_ptr<CustomDrawButton> maximize_button_; 100 scoped_ptr<CustomDrawButton> maximize_button_;
97 scoped_ptr<CustomDrawButton> restore_button_; 101 scoped_ptr<CustomDrawButton> restore_button_;
98 scoped_ptr<CustomDrawButton> close_button_; 102 scoped_ptr<CustomDrawButton> close_button_;
99 103
100 // The context menu. 104 // The context menu.
101 scoped_ptr<MenuGtk> context_menu_; 105 scoped_ptr<MenuGtk> context_menu_;
102 }; 106 };
103 107
104 #endif // CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ 108 #endif // CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_titlebar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698