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

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

Issue 140026: Add the ability to resize the window when over the custom frame. (Closed)
Patch Set: fix tab offset Created 11 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
« no previous file with comments | « chrome/browser/gtk/browser_titlebar.cc ('k') | chrome/browser/gtk/browser_window_gtk.h » ('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 #ifndef CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
6 #define CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 6 #define CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 29 matching lines...) Expand all
40 // Create the contents of the toolbar. |top_level_window| is the GtkWindow 40 // Create the contents of the toolbar. |top_level_window| is the GtkWindow
41 // to which we attach our accelerators. 41 // to which we attach our accelerators.
42 void Init(Profile* profile, GtkWindow* top_level_window); 42 void Init(Profile* profile, GtkWindow* top_level_window);
43 43
44 // Adds this GTK toolbar into a sizing box. 44 // Adds this GTK toolbar into a sizing box.
45 void AddToolbarToBox(GtkWidget* box); 45 void AddToolbarToBox(GtkWidget* box);
46 46
47 void Show(); 47 void Show();
48 void Hide(); 48 void Hide();
49 49
50 // Getter for the containing widget.
51 GtkWidget* widget() {
52 return toolbar_;
53 }
54
50 virtual LocationBar* GetLocationBar() const; 55 virtual LocationBar* GetLocationBar() const;
51 56
52 GoButtonGtk* GetGoButton() { return go_.get(); } 57 GoButtonGtk* GetGoButton() { return go_.get(); }
53 58
54 // Overridden from CommandUpdater::CommandObserver: 59 // Overridden from CommandUpdater::CommandObserver:
55 virtual void EnabledStateChangedForCommand(int id, bool enabled); 60 virtual void EnabledStateChangedForCommand(int id, bool enabled);
56 61
57 // Overridden from MenuGtk::Delegate: 62 // Overridden from MenuGtk::Delegate:
58 virtual bool IsCommandEnabled(int command_id) const; 63 virtual bool IsCommandEnabled(int command_id) const;
59 virtual bool IsItemChecked(int id) const; 64 virtual bool IsItemChecked(int id) const;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Controls whether or not a home button should be shown on the toolbar. 160 // Controls whether or not a home button should be shown on the toolbar.
156 BooleanPrefMember show_home_button_; 161 BooleanPrefMember show_home_button_;
157 162
158 // The event state the last time we observed a button release event. 163 // The event state the last time we observed a button release event.
159 int last_release_event_flags_; 164 int last_release_event_flags_;
160 165
161 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); 166 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk);
162 }; 167 };
163 168
164 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 169 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/browser_titlebar.cc ('k') | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698