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

Side by Side Diff: chrome/browser/ui/tab_modal_confirm_dialog_delegate.h

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (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_TAB_MODAL_CONFIRM_DIALOG_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_DELEGATE_H_
6 #define CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_DELEGATE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 protected: 95 protected:
96 TabModalConfirmDialogCloseDelegate* close_delegate() { 96 TabModalConfirmDialogCloseDelegate* close_delegate() {
97 return close_delegate_; 97 return close_delegate_;
98 } 98 }
99 99
100 // content::NotificationObserver implementation. 100 // content::NotificationObserver implementation.
101 // Watch for a new load or a closed tab and dismiss the dialog if they occur. 101 // Watch for a new load or a closed tab and dismiss the dialog if they occur.
102 virtual void Observe(int type, 102 virtual void Observe(int type,
103 const content::NotificationSource& source, 103 const content::NotificationSource& source,
104 const content::NotificationDetails& details) OVERRIDE; 104 const content::NotificationDetails& details) override;
105 105
106 content::NotificationRegistrar registrar_; 106 content::NotificationRegistrar registrar_;
107 107
108 private: 108 private:
109 // It is guaranteed that exactly one of OnAccepted(), OnCanceled() or 109 // It is guaranteed that exactly one of OnAccepted(), OnCanceled() or
110 // OnClosed() is eventually called. These method are private to enforce this 110 // OnClosed() is eventually called. These method are private to enforce this
111 // guarantee. Access to them is controlled by Accept(), Cancel() and Close(). 111 // guarantee. Access to them is controlled by Accept(), Cancel() and Close().
112 112
113 // Called when the user accepts or cancels the dialog, respectively. 113 // Called when the user accepts or cancels the dialog, respectively.
114 virtual void OnAccepted(); 114 virtual void OnAccepted();
(...skipping 14 matching lines...) Expand all
129 TabModalConfirmDialogCloseDelegate* close_delegate_; 129 TabModalConfirmDialogCloseDelegate* close_delegate_;
130 130
131 // True iff we are in the process of closing, to avoid running callbacks 131 // True iff we are in the process of closing, to avoid running callbacks
132 // multiple times. 132 // multiple times.
133 bool closing_; 133 bool closing_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogDelegate); 135 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogDelegate);
136 }; 136 };
137 137
138 #endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_DELEGATE_H_ 138 #endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_modal_confirm_dialog_browsertest.h ('k') | chrome/browser/ui/tabs/pinned_tab_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698