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

Side by Side Diff: chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.h

Issue 7043020: Multi-tab selection: Renaming TabStripModelObserver::TabSelectedAt to ActiveTabChanged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating TODO comments Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_VIEWS_COMPACT_NAV_COMPACT_LOCATION_BAR_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_COMPACT_NAV_COMPACT_LOCATION_BAR_VIEW_HOST_H_
6 #define CHROME_BROWSER_UI_VIEWS_COMPACT_NAV_COMPACT_LOCATION_BAR_VIEW_HOST_H_ 6 #define CHROME_BROWSER_UI_VIEWS_COMPACT_NAV_COMPACT_LOCATION_BAR_VIEW_HOST_H_
7 7
8 #include "base/timer.h" 8 #include "base/timer.h"
9 #include "chrome/browser/tabs/tab_strip_model.h" 9 #include "chrome/browser/tabs/tab_strip_model.h"
10 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 10 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool no_redraw) OVERRIDE; 81 bool no_redraw) OVERRIDE;
82 82
83 // Overridden from views::AcceleratorTarget in DropdownBarHost class. 83 // Overridden from views::AcceleratorTarget in DropdownBarHost class.
84 virtual bool AcceleratorPressed( 84 virtual bool AcceleratorPressed(
85 const views::Accelerator& accelerator) OVERRIDE; 85 const views::Accelerator& accelerator) OVERRIDE;
86 86
87 // Overridden from TabStripModelObserver class. 87 // Overridden from TabStripModelObserver class.
88 virtual void TabClosingAt(TabStripModel* tab_strip_model, 88 virtual void TabClosingAt(TabStripModel* tab_strip_model,
89 TabContentsWrapper* contents, 89 TabContentsWrapper* contents,
90 int index) OVERRIDE; 90 int index) OVERRIDE;
91 virtual void TabSelectedAt(TabContentsWrapper* old_contents, 91 virtual void ActiveTabChanged(TabContentsWrapper* old_contents,
92 TabContentsWrapper* new_contents, 92 TabContentsWrapper* new_contents,
93 int index, 93 int index,
94 bool user_gesture) OVERRIDE; 94 bool user_gesture) OVERRIDE;
95 virtual void TabMoved(TabContentsWrapper* contents, 95 virtual void TabMoved(TabContentsWrapper* contents,
96 int from_index, 96 int from_index,
97 int to_index) OVERRIDE; 97 int to_index) OVERRIDE;
98 virtual void TabChangedAt(TabContentsWrapper* contents, int index, 98 virtual void TabChangedAt(TabContentsWrapper* contents, int index,
99 TabChangeType change_type) OVERRIDE; 99 TabChangeType change_type) OVERRIDE;
100 virtual void ActiveTabClicked(int index) OVERRIDE; 100 virtual void ActiveTabClicked(int index) OVERRIDE;
101 101
102 // Overridden from NotificationObserver. 102 // Overridden from NotificationObserver.
103 virtual void Observe(NotificationType type, 103 virtual void Observe(NotificationType type,
104 const NotificationSource& source, 104 const NotificationSource& source,
(...skipping 24 matching lines...) Expand all
129 129
130 scoped_ptr<MouseObserver> mouse_observer_; 130 scoped_ptr<MouseObserver> mouse_observer_;
131 131
132 // Track if we are currently observing the tabstrip model. 132 // Track if we are currently observing the tabstrip model.
133 bool is_observing_; 133 bool is_observing_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(CompactLocationBarViewHost); 135 DISALLOW_COPY_AND_ASSIGN(CompactLocationBarViewHost);
136 }; 136 };
137 137
138 #endif // CHROME_BROWSER_UI_VIEWS_COMPACT_NAV_COMPACT_LOCATION_BAR_VIEW_HOST_H_ 138 #endif // CHROME_BROWSER_UI_VIEWS_COMPACT_NAV_COMPACT_LOCATION_BAR_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698