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

Side by Side Diff: chrome/browser/ui/toolbar/wrench_menu_model.h

Issue 11866004: Add scheme to HostZoomMap (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add namespace Created 7 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_WRENCH_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // clipboard menu content and the finalizing menu break. If the last break 141 // clipboard menu content and the finalizing menu break. If the last break
142 // is not needed it can be suppressed by setting |new_menu| 142 // is not needed it can be suppressed by setting |new_menu|
143 // to false. 143 // to false.
144 void CreateCutCopyPasteMenu(bool new_menu); 144 void CreateCutCopyPasteMenu(bool new_menu);
145 145
146 // Appends everything needed for the zoom menu: a menu break, then the zoom 146 // Appends everything needed for the zoom menu: a menu break, then the zoom
147 // menu content and then another menu break. If the new menu type is used, 147 // menu content and then another menu break. If the new menu type is used,
148 // |new_menu| should be set to true. 148 // |new_menu| should be set to true.
149 void CreateZoomMenu(bool new_menu); 149 void CreateZoomMenu(bool new_menu);
150 150
151 void OnZoomLevelChanged(const std::string& host); 151 void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& change);
152 152
153 // Models for the special menu items with buttons. 153 // Models for the special menu items with buttons.
154 scoped_ptr<ui::ButtonMenuItemModel> edit_menu_item_model_; 154 scoped_ptr<ui::ButtonMenuItemModel> edit_menu_item_model_;
155 scoped_ptr<ui::ButtonMenuItemModel> zoom_menu_item_model_; 155 scoped_ptr<ui::ButtonMenuItemModel> zoom_menu_item_model_;
156 156
157 // Label of the zoom label in the zoom menu item. 157 // Label of the zoom label in the zoom menu item.
158 string16 zoom_label_; 158 string16 zoom_label_;
159 159
160 // Tools menu. 160 // Tools menu.
161 scoped_ptr<ToolsMenuModel> tools_menu_model_; 161 scoped_ptr<ToolsMenuModel> tools_menu_model_;
162 162
163 // Bookmark submenu. 163 // Bookmark submenu.
164 scoped_ptr<BookmarkSubMenuModel> bookmark_sub_menu_model_; 164 scoped_ptr<BookmarkSubMenuModel> bookmark_sub_menu_model_;
165 165
166 // Recent Tabs submenu. 166 // Recent Tabs submenu.
167 scoped_ptr<RecentTabsSubMenuModel> recent_tabs_sub_menu_model_; 167 scoped_ptr<RecentTabsSubMenuModel> recent_tabs_sub_menu_model_;
168 168
169 ui::AcceleratorProvider* provider_; // weak 169 ui::AcceleratorProvider* provider_; // weak
170 170
171 Browser* browser_; // weak 171 Browser* browser_; // weak
172 TabStripModel* tab_strip_model_; // weak 172 TabStripModel* tab_strip_model_; // weak
173 173
174 content::HostZoomMap::ZoomLevelChangedCallback zoom_callback_; 174 content::HostZoomMap::ZoomLevelChangedCallback zoom_callback_;
175 content::NotificationRegistrar registrar_; 175 content::NotificationRegistrar registrar_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); 177 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel);
178 }; 178 };
179 179
180 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ 180 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698