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

Side by Side Diff: chrome/browser/ui/cocoa/keystone_infobar_delegate.mm

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 #include "chrome/browser/ui/cocoa/keystone_infobar_delegate.h" 5 #include "chrome/browser/ui/cocoa/keystone_infobar_delegate.h"
6 6
7 #import <AppKit/AppKit.h> 7 #import <AppKit/AppKit.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 private: 45 private:
46 explicit KeystonePromotionInfoBarDelegate(PrefService* prefs); 46 explicit KeystonePromotionInfoBarDelegate(PrefService* prefs);
47 virtual ~KeystonePromotionInfoBarDelegate(); 47 virtual ~KeystonePromotionInfoBarDelegate();
48 48
49 // Sets this info bar to be able to expire. Called a predetermined amount 49 // Sets this info bar to be able to expire. Called a predetermined amount
50 // of time after this object is created. 50 // of time after this object is created.
51 void SetCanExpire() { can_expire_ = true; } 51 void SetCanExpire() { can_expire_ = true; }
52 52
53 // ConfirmInfoBarDelegate 53 // ConfirmInfoBarDelegate
54 virtual int GetIconID() const OVERRIDE; 54 virtual int GetIconID() const override;
55 virtual base::string16 GetMessageText() const OVERRIDE; 55 virtual base::string16 GetMessageText() const override;
56 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 56 virtual base::string16 GetButtonLabel(InfoBarButton button) const override;
57 virtual bool Accept() OVERRIDE; 57 virtual bool Accept() override;
58 virtual bool Cancel() OVERRIDE; 58 virtual bool Cancel() override;
59 virtual bool ShouldExpireInternal( 59 virtual bool ShouldExpireInternal(
60 const NavigationDetails& details) const OVERRIDE; 60 const NavigationDetails& details) const override;
61 61
62 // The prefs to use. 62 // The prefs to use.
63 PrefService* prefs_; // weak 63 PrefService* prefs_; // weak
64 64
65 // Whether the info bar should be dismissed on the next navigation. 65 // Whether the info bar should be dismissed on the next navigation.
66 bool can_expire_; 66 bool can_expire_;
67 67
68 // Used to delay the expiration of the info bar. 68 // Used to delay the expiration of the info bar.
69 base::WeakPtrFactory<KeystonePromotionInfoBarDelegate> weak_ptr_factory_; 69 base::WeakPtrFactory<KeystonePromotionInfoBarDelegate> weak_ptr_factory_;
70 70
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 @end // @implementation KeystonePromotionInfoBar 219 @end // @implementation KeystonePromotionInfoBar
220 220
221 // static 221 // static
222 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) { 222 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) {
223 KeystonePromotionInfoBar* promotionInfoBar = 223 KeystonePromotionInfoBar* promotionInfoBar =
224 [[[KeystonePromotionInfoBar alloc] init] autorelease]; 224 [[[KeystonePromotionInfoBar alloc] init] autorelease];
225 225
226 [promotionInfoBar checkAndShowInfoBarForProfile:profile]; 226 [promotionInfoBar checkAndShowInfoBarForProfile:profile];
227 } 227 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h ('k') | chrome/browser/ui/cocoa/location_bar/bubble_decoration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698