| OLD | NEW |
| 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_VIEWS_TABS_TAB_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // ongoing this does a layout. | 203 // ongoing this does a layout. |
| 204 void StopAnimating(bool layout); | 204 void StopAnimating(bool layout); |
| 205 | 205 |
| 206 // Called to indicate whether the given URL is a supported file. | 206 // Called to indicate whether the given URL is a supported file. |
| 207 void FileSupported(const GURL& url, bool supported); | 207 void FileSupported(const GURL& url, bool supported); |
| 208 | 208 |
| 209 // TabController overrides: | 209 // TabController overrides: |
| 210 const ui::ListSelectionModel& GetSelectionModel() const override; | 210 const ui::ListSelectionModel& GetSelectionModel() const override; |
| 211 bool SupportsMultipleSelection() override; | 211 bool SupportsMultipleSelection() override; |
| 212 bool ShouldHideCloseButtonForInactiveTabs() override; | 212 bool ShouldHideCloseButtonForInactiveTabs() override; |
| 213 bool MaySetClip() override; |
| 213 void SelectTab(Tab* tab) override; | 214 void SelectTab(Tab* tab) override; |
| 214 void ExtendSelectionTo(Tab* tab) override; | 215 void ExtendSelectionTo(Tab* tab) override; |
| 215 void ToggleSelected(Tab* tab) override; | 216 void ToggleSelected(Tab* tab) override; |
| 216 void AddSelectionFromAnchorTo(Tab* tab) override; | 217 void AddSelectionFromAnchorTo(Tab* tab) override; |
| 217 void CloseTab(Tab* tab, CloseTabSource source) override; | 218 void CloseTab(Tab* tab, CloseTabSource source) override; |
| 218 void ToggleTabAudioMute(Tab* tab) override; | 219 void ToggleTabAudioMute(Tab* tab) override; |
| 219 void ShowContextMenuForTab(Tab* tab, | 220 void ShowContextMenuForTab(Tab* tab, |
| 220 const gfx::Point& p, | 221 const gfx::Point& p, |
| 221 ui::MenuSourceType source_type) override; | 222 ui::MenuSourceType source_type) override; |
| 222 bool IsActiveTab(const Tab* tab) const override; | 223 bool IsActiveTab(const Tab* tab) const override; |
| 223 bool IsTabSelected(const Tab* tab) const override; | 224 bool IsTabSelected(const Tab* tab) const override; |
| 224 bool IsTabPinned(const Tab* tab) const override; | 225 bool IsTabPinned(const Tab* tab) const override; |
| 225 void MaybeStartDrag( | 226 void MaybeStartDrag( |
| 226 Tab* tab, | 227 Tab* tab, |
| 227 const ui::LocatedEvent& event, | 228 const ui::LocatedEvent& event, |
| 228 const ui::ListSelectionModel& original_selection) override; | 229 const ui::ListSelectionModel& original_selection) override; |
| 229 void ContinueDrag(views::View* view, const ui::LocatedEvent& event) override; | 230 void ContinueDrag(views::View* view, const ui::LocatedEvent& event) override; |
| 230 bool EndDrag(EndDragReason reason) override; | 231 bool EndDrag(EndDragReason reason) override; |
| 231 Tab* GetTabAt(Tab* tab, const gfx::Point& tab_in_tab_coordinates) override; | 232 Tab* GetTabAt(Tab* tab, const gfx::Point& tab_in_tab_coordinates) override; |
| 232 void OnMouseEventInTab(views::View* source, | 233 void OnMouseEventInTab(views::View* source, |
| 233 const ui::MouseEvent& event) override; | 234 const ui::MouseEvent& event) override; |
| 234 bool ShouldPaintTab(const Tab* tab, gfx::Rect* clip) override; | 235 bool ShouldPaintTab( |
| 236 const Tab* tab, |
| 237 const base::Callback<gfx::Path(const gfx::Size&)>& border_callback, |
| 238 gfx::Path* clip) override; |
| 235 bool CanPaintThrobberToLayer() const override; | 239 bool CanPaintThrobberToLayer() const override; |
| 236 bool IsImmersiveStyle() const override; | 240 bool IsImmersiveStyle() const override; |
| 237 SkColor GetToolbarTopSeparatorColor() const override; | 241 SkColor GetToolbarTopSeparatorColor() const override; |
| 238 int GetBackgroundResourceId(bool* custom_image) const override; | 242 int GetBackgroundResourceId(bool* custom_image) const override; |
| 239 void UpdateTabAccessibilityState(const Tab* tab, | 243 void UpdateTabAccessibilityState(const Tab* tab, |
| 240 ui::AXViewState* state) override; | 244 ui::AXViewState* state) override; |
| 241 | 245 |
| 242 // MouseWatcherListener overrides: | 246 // MouseWatcherListener overrides: |
| 243 void MouseMovedOutOfHost() override; | 247 void MouseMovedOutOfHost() override; |
| 244 | 248 |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 bool immersive_style_; | 653 bool immersive_style_; |
| 650 | 654 |
| 651 // Our observers. | 655 // Our observers. |
| 652 typedef base::ObserverList<TabStripObserver> TabStripObservers; | 656 typedef base::ObserverList<TabStripObserver> TabStripObservers; |
| 653 TabStripObservers observers_; | 657 TabStripObservers observers_; |
| 654 | 658 |
| 655 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 659 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
| 656 }; | 660 }; |
| 657 | 661 |
| 658 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 662 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| OLD | NEW |