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

Side by Side Diff: chrome/browser/ui/tabs/tab_strip_model_order_controller.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_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_
7 7
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "ui/base/page_transition_types.h" 9 #include "ui/base/page_transition_types.h"
10 10
(...skipping 13 matching lines...) Expand all
24 int DetermineInsertionIndex(ui::PageTransition transition, 24 int DetermineInsertionIndex(ui::PageTransition transition,
25 bool foreground); 25 bool foreground);
26 26
27 // Determine where to shift selection after a tab is closed. 27 // Determine where to shift selection after a tab is closed.
28 int DetermineNewSelectedIndex(int removed_index) const; 28 int DetermineNewSelectedIndex(int removed_index) const;
29 29
30 // Overridden from TabStripModelObserver: 30 // Overridden from TabStripModelObserver:
31 virtual void ActiveTabChanged(content::WebContents* old_contents, 31 virtual void ActiveTabChanged(content::WebContents* old_contents,
32 content::WebContents* new_contents, 32 content::WebContents* new_contents,
33 int index, 33 int index,
34 int reason) OVERRIDE; 34 int reason) override;
35 35
36 private: 36 private:
37 // Returns a valid index to be selected after the tab at |removing_index| is 37 // Returns a valid index to be selected after the tab at |removing_index| is
38 // closed. If |index| is after |removing_index|, |index| is adjusted to 38 // closed. If |index| is after |removing_index|, |index| is adjusted to
39 // reflect the fact that |removing_index| is going away. 39 // reflect the fact that |removing_index| is going away.
40 int GetValidIndex(int index, int removing_index) const; 40 int GetValidIndex(int index, int removing_index) const;
41 41
42 TabStripModel* tabstrip_; 42 TabStripModel* tabstrip_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(TabStripModelOrderController); 44 DISALLOW_COPY_AND_ASSIGN(TabStripModelOrderController);
45 }; 45 };
46 46
47 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_ 47 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model.cc ('k') | chrome/browser/ui/tabs/tab_strip_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698