OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ |
6 #define CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 browser_sync::OpenTabsUIDelegate* open_tabs_delegate); | 54 browser_sync::OpenTabsUIDelegate* open_tabs_delegate); |
55 virtual ~RecentTabsSubMenuModel(); | 55 virtual ~RecentTabsSubMenuModel(); |
56 | 56 |
57 // Overridden from ui::SimpleMenuModel::Delegate: | 57 // Overridden from ui::SimpleMenuModel::Delegate: |
58 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 58 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
59 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 59 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
60 virtual bool GetAcceleratorForCommandId( | 60 virtual bool GetAcceleratorForCommandId( |
61 int command_id, | 61 int command_id, |
62 ui::Accelerator* accelerator) OVERRIDE; | 62 ui::Accelerator* accelerator) OVERRIDE; |
63 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; | 63 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; |
64 virtual const gfx::Font* GetLabelFontAt(int index) const OVERRIDE; | 64 virtual const gfx::FontList* GetLabelFontListAt(int index) const OVERRIDE; |
65 | 65 |
66 int GetMaxWidthForItemAtIndex(int item_index) const; | 66 int GetMaxWidthForItemAtIndex(int item_index) const; |
67 bool GetURLAndTitleForItemAtIndex(int index, | 67 bool GetURLAndTitleForItemAtIndex(int index, |
68 std::string* url, | 68 std::string* url, |
69 base::string16* title); | 69 base::string16* title); |
70 | 70 |
71 private: | 71 private: |
72 struct TabNavigationItem; | 72 struct TabNavigationItem; |
73 typedef std::vector<TabNavigationItem> TabNavigationItems; | 73 typedef std::vector<TabNavigationItem> TabNavigationItems; |
74 | 74 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 CancelableTaskTracker local_tab_cancelable_task_tracker_; | 162 CancelableTaskTracker local_tab_cancelable_task_tracker_; |
163 CancelableTaskTracker other_devices_tab_cancelable_task_tracker_; | 163 CancelableTaskTracker other_devices_tab_cancelable_task_tracker_; |
164 | 164 |
165 base::WeakPtrFactory<RecentTabsSubMenuModel> weak_ptr_factory_; | 165 base::WeakPtrFactory<RecentTabsSubMenuModel> weak_ptr_factory_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(RecentTabsSubMenuModel); | 167 DISALLOW_COPY_AND_ASSIGN(RecentTabsSubMenuModel); |
168 }; | 168 }; |
169 | 169 |
170 #endif // CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ | 170 #endif // CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_SUB_MENU_MODEL_H_ |
OLD | NEW |