| OLD | NEW |
| 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_GTK_BOOKMARK_SUB_MENU_MODEL_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_SUB_MENU_MODEL_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_BOOKMARK_SUB_MENU_MODEL_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_SUB_MENU_MODEL_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" | 11 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" |
| 12 #include "ui/base/models/simple_menu_model.h" | 12 #include "ui/base/models/simple_menu_model.h" |
| 13 #include "webkit/glue/window_open_disposition.h" | 13 #include "webkit/glue/window_open_disposition.h" |
| 14 | 14 |
| 15 class Browser; | 15 class Browser; |
| 16 class BookmarkModel; | 16 class BookmarkModel; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 int bookmark_end_; | 110 int bookmark_end_; |
| 111 | 111 |
| 112 // We need to be able to call Cancel() on the menu when bookmarks change. This | 112 // We need to be able to call Cancel() on the menu when bookmarks change. This |
| 113 // is a bit of an abstraction violation but it could be converted to an | 113 // is a bit of an abstraction violation but it could be converted to an |
| 114 // interface with just a Cancel() method if necessary. | 114 // interface with just a Cancel() method if necessary. |
| 115 MenuGtk* menu_; | 115 MenuGtk* menu_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(BookmarkSubMenuModel); | 117 DISALLOW_COPY_AND_ASSIGN(BookmarkSubMenuModel); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 #endif // CHROME_BROWSER_UI_GTK_BOOKMARK_SUB_MENU_MODEL_GTK_H_ | 120 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_SUB_MENU_MODEL_GTK_H_ |
| OLD | NEW |