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

Side by Side Diff: chrome/browser/ui/cocoa/wrench_menu/recent_tabs_menu_model_delegate.h

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_COCOA_WRENCH_MENU_RECENT_TABS_MENU_MODEL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_WRENCH_MENU_RECENT_TABS_MENU_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_COCOA_WRENCH_MENU_RECENT_TABS_MENU_MODEL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_COCOA_WRENCH_MENU_RECENT_TABS_MENU_MODEL_DELEGATE_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "ui/base/models/menu_model_delegate.h" 11 #include "ui/base/models/menu_model_delegate.h"
12 12
13 namespace ui { 13 namespace ui {
14 class MenuModel; 14 class MenuModel;
15 } 15 }
16 16
17 // Updates the recent tabs menu when the model changes. 17 // Updates the recent tabs menu when the model changes.
18 class RecentTabsMenuModelDelegate : public ui::MenuModelDelegate { 18 class RecentTabsMenuModelDelegate : public ui::MenuModelDelegate {
19 public: 19 public:
20 // |model| must live longer than this object. 20 // |model| must live longer than this object.
21 RecentTabsMenuModelDelegate(ui::MenuModel* model, NSMenu* menu); 21 RecentTabsMenuModelDelegate(ui::MenuModel* model, NSMenu* menu);
22 virtual ~RecentTabsMenuModelDelegate(); 22 virtual ~RecentTabsMenuModelDelegate();
23 23
24 // ui::MenuModelDelegate: 24 // ui::MenuModelDelegate:
25 virtual void OnIconChanged(int index) OVERRIDE; 25 virtual void OnIconChanged(int index) override;
26 26
27 private: 27 private:
28 ui::MenuModel* model_; // weak 28 ui::MenuModel* model_; // weak
29 base::scoped_nsobject<NSMenu> menu_; 29 base::scoped_nsobject<NSMenu> menu_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(RecentTabsMenuModelDelegate); 31 DISALLOW_COPY_AND_ASSIGN(RecentTabsMenuModelDelegate);
32 }; 32 };
33 33
34 #endif // CHROME_BROWSER_UI_COCOA_WRENCH_MENU_RECENT_TABS_MENU_MODEL_DELEGATE_H _ 34 #endif // CHROME_BROWSER_UI_COCOA_WRENCH_MENU_RECENT_TABS_MENU_MODEL_DELEGATE_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698