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

Unified Diff: chrome/browser/chromeos/tab_closeable_state_watcher.h

Issue 8638016: Add OVERRIDE to chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/tab_closeable_state_watcher.h
diff --git a/chrome/browser/chromeos/tab_closeable_state_watcher.h b/chrome/browser/chromeos/tab_closeable_state_watcher.h
index 47ec5a2dc7445edb2b55626f01b97b97f55f9971..9b17439099fc137459e744f36810c68008e17ba8 100644
--- a/chrome/browser/chromeos/tab_closeable_state_watcher.h
+++ b/chrome/browser/chromeos/tab_closeable_state_watcher.h
@@ -8,6 +8,7 @@
#include <vector>
+#include "base/compiler_specific.h"
#include "chrome/browser/tab_closeable_state_watcher.h"
#include "chrome/browser/tabs/tab_strip_model_observer.h"
#include "chrome/browser/ui/browser_list.h"
@@ -47,11 +48,11 @@ class TabCloseableStateWatcher : public ::TabCloseableStateWatcher,
virtual ~TabCloseableStateWatcher();
// TabCloseableStateWatcher implementation:
- virtual bool CanCloseTab(const Browser* browser) const;
+ virtual bool CanCloseTab(const Browser* browser) const OVERRIDE;
virtual bool CanCloseTabs(const Browser* browser,
- std::vector<int>* indices) const;
- virtual bool CanCloseBrowser(Browser* browser);
- virtual void OnWindowCloseCanceled(Browser* browser);
+ std::vector<int>* indices) const OVERRIDE;
+ virtual bool CanCloseBrowser(Browser* browser) OVERRIDE;
+ virtual void OnWindowCloseCanceled(Browser* browser) OVERRIDE;
private:
enum BrowserActionType {
@@ -61,12 +62,12 @@ class TabCloseableStateWatcher : public ::TabCloseableStateWatcher,
};
// BrowserList::Observer implementation:
- virtual void OnBrowserAdded(const Browser* browser);
- virtual void OnBrowserRemoved(const Browser* browser);
+ virtual void OnBrowserAdded(const Browser* browser) OVERRIDE;
+ virtual void OnBrowserRemoved(const Browser* browser) OVERRIDE;
// NotificationObserver implementation:
virtual void Observe(int type, const content::NotificationSource& source,
- const content::NotificationDetails& details);
+ const content::NotificationDetails& details) OVERRIDE;
// Called by private class TabStripWatcher for TabStripModelObserver
// notifications.
@@ -122,13 +123,14 @@ class TabCloseableStateWatcher : public ::TabCloseableStateWatcher,
// TabStripModelObserver implementation:
virtual void TabInsertedAt(TabContentsWrapper* contents, int index,
- bool foreground);
+ bool foreground) OVERRIDE;
virtual void TabClosingAt(TabStripModel* tab_strip_model,
TabContentsWrapper* contents,
- int index);
- virtual void TabDetachedAt(TabContentsWrapper* contents, int index);
+ int index) OVERRIDE;
+ virtual void TabDetachedAt(TabContentsWrapper* contents,
+ int index) OVERRIDE;
virtual void TabChangedAt(TabContentsWrapper* contents, int index,
- TabChangeType change_type);
+ TabChangeType change_type) OVERRIDE;
const Browser* browser() const {
return browser_;

Powered by Google App Engine
This is Rietveld 408576698