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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // NOTE: the drag and drop methods are invoked from FrameView. This is done | 200 // NOTE: the drag and drop methods are invoked from FrameView. This is done |
201 // to allow for a drop region that extends outside the bounds of the TabStrip. | 201 // to allow for a drop region that extends outside the bounds of the TabStrip. |
202 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; | 202 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
203 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 203 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
204 virtual void OnDragExited() OVERRIDE; | 204 virtual void OnDragExited() OVERRIDE; |
205 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 205 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
206 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 206 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
207 virtual views::View* GetEventHandlerForPoint( | 207 virtual views::View* GetEventHandlerForPoint( |
208 const gfx::Point& point) OVERRIDE; | 208 const gfx::Point& point) OVERRIDE; |
209 | 209 |
| 210 // Returns preferred height in immersive style. |
| 211 static int GetImmersiveHeight(); |
| 212 |
210 protected: | 213 protected: |
211 // Horizontal gap between mini and non-mini-tabs. | 214 // Horizontal gap between mini and non-mini-tabs. |
212 static const int kMiniToNonMiniGap; | 215 static const int kMiniToNonMiniGap; |
213 | 216 |
214 void set_ideal_bounds(int index, const gfx::Rect& bounds) { | 217 void set_ideal_bounds(int index, const gfx::Rect& bounds) { |
215 tabs_.set_ideal_bounds(index, bounds); | 218 tabs_.set_ideal_bounds(index, bounds); |
216 } | 219 } |
217 | 220 |
218 // Returns the number of mini-tabs. | 221 // Returns the number of mini-tabs. |
219 int GetMiniTabCount() const; | 222 int GetMiniTabCount() const; |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 // tab close comes from a touch device. | 594 // tab close comes from a touch device. |
592 base::OneShotTimer<TabStrip> resize_layout_timer_; | 595 base::OneShotTimer<TabStrip> resize_layout_timer_; |
593 | 596 |
594 // True if tabs are painted as rectangular light-bars. | 597 // True if tabs are painted as rectangular light-bars. |
595 bool immersive_style_; | 598 bool immersive_style_; |
596 | 599 |
597 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 600 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
598 }; | 601 }; |
599 | 602 |
600 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 603 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
OLD | NEW |