| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This class replicates some menubar behaviors that are tricky to get right. | 5 // This class replicates some menubar behaviors that are tricky to get right. |
| 6 // It is used to create a more native feel for the bookmark bar. | 6 // It is used to create a more native feel for the bookmark bar. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_GTK_MENU_BAR_HELPER_H_ | 8 #ifndef CHROME_BROWSER_UI_GTK_MENU_BAR_HELPER_H_ |
| 9 #define CHROME_BROWSER_GTK_MENU_BAR_HELPER_H_ | 9 #define CHROME_BROWSER_UI_GTK_MENU_BAR_HELPER_H_ |
| 10 #pragma once | 10 #pragma once |
| 11 | 11 |
| 12 #include <gtk/gtk.h> | 12 #include <gtk/gtk.h> |
| 13 | 13 |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "app/gtk_signal.h" | 16 #include "app/gtk_signal.h" |
| 17 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
| 18 | 18 |
| 19 class GtkSignalRegistrar; | 19 class GtkSignalRegistrar; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // of them. | 68 // of them. |
| 69 std::vector<GtkWidget*> submenus_; | 69 std::vector<GtkWidget*> submenus_; |
| 70 | 70 |
| 71 // Signal handlers that are attached only between the "show" and "hide" events | 71 // Signal handlers that are attached only between the "show" and "hide" events |
| 72 // for the menu. | 72 // for the menu. |
| 73 scoped_ptr<GtkSignalRegistrar> signal_handlers_; | 73 scoped_ptr<GtkSignalRegistrar> signal_handlers_; |
| 74 | 74 |
| 75 Delegate* delegate_; | 75 Delegate* delegate_; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_GTK_MENU_BAR_HELPER_H_ | 78 #endif // CHROME_BROWSER_UI_GTK_MENU_BAR_HELPER_H_ |
| OLD | NEW |