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

Side by Side Diff: chrome/browser/ui/views/toolbar/wrench_menu.h

Issue 700673003: Add metrics to all items in the 'wrench' menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge conflicts Created 6 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_VIEWS_TOOLBAR_WRENCH_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/time/time.h"
14 #include "base/timer/elapsed_timer.h"
13 #include "components/bookmarks/browser/base_bookmark_model_observer.h" 15 #include "components/bookmarks/browser/base_bookmark_model_observer.h"
14 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
16 #include "ui/base/models/menu_model.h" 18 #include "ui/base/models/menu_model.h"
17 #include "ui/views/controls/menu/menu_delegate.h" 19 #include "ui/views/controls/menu/menu_delegate.h"
18 20
19 class BookmarkMenuDelegate; 21 class BookmarkMenuDelegate;
20 class Browser; 22 class Browser;
21 class WrenchMenuObserver; 23 class WrenchMenuObserver;
22 24
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Used for managing "Recent tabs" menu items. 179 // Used for managing "Recent tabs" menu items.
178 scoped_ptr<RecentTabsMenuModelDelegate> recent_tabs_menu_model_delegate_; 180 scoped_ptr<RecentTabsMenuModelDelegate> recent_tabs_menu_model_delegate_;
179 181
180 content::NotificationRegistrar registrar_; 182 content::NotificationRegistrar registrar_;
181 183
182 // The bit mask of RunFlags. 184 // The bit mask of RunFlags.
183 const int run_flags_; 185 const int run_flags_;
184 186
185 ObserverList<WrenchMenuObserver> observer_list_; 187 ObserverList<WrenchMenuObserver> observer_list_;
186 188
189 // Records the time from when menu opens to when the user selects a menu item.
190 base::ElapsedTimer menu_opened_timer_;
191
187 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); 192 DISALLOW_COPY_AND_ASSIGN(WrenchMenu);
188 }; 193 };
189 194
190 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ 195 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model.cc ('k') | chrome/browser/ui/views/toolbar/wrench_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698