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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip.h

Issue 275183002: patch from issue 218843002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 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
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_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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 virtual void OnMouseEventInTab(views::View* source, 207 virtual void OnMouseEventInTab(views::View* source,
208 const ui::MouseEvent& event) OVERRIDE; 208 const ui::MouseEvent& event) OVERRIDE;
209 virtual bool ShouldPaintTab(const Tab* tab, gfx::Rect* clip) OVERRIDE; 209 virtual bool ShouldPaintTab(const Tab* tab, gfx::Rect* clip) OVERRIDE;
210 virtual bool IsImmersiveStyle() const OVERRIDE; 210 virtual bool IsImmersiveStyle() const OVERRIDE;
211 211
212 // MouseWatcherListener overrides: 212 // MouseWatcherListener overrides:
213 virtual void MouseMovedOutOfHost() OVERRIDE; 213 virtual void MouseMovedOutOfHost() OVERRIDE;
214 214
215 // views::View overrides: 215 // views::View overrides:
216 virtual void Layout() OVERRIDE; 216 virtual void Layout() OVERRIDE;
217 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; 217 virtual void PaintChildren(gfx::Canvas* canvas,
218 const views::CullSet& cull_set) OVERRIDE;
218 virtual const char* GetClassName() const OVERRIDE; 219 virtual const char* GetClassName() const OVERRIDE;
219 virtual gfx::Size GetPreferredSize() OVERRIDE; 220 virtual gfx::Size GetPreferredSize() OVERRIDE;
220 // NOTE: the drag and drop methods are invoked from FrameView. This is done 221 // NOTE: the drag and drop methods are invoked from FrameView. This is done
221 // to allow for a drop region that extends outside the bounds of the TabStrip. 222 // to allow for a drop region that extends outside the bounds of the TabStrip.
222 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; 223 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE;
223 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; 224 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE;
224 virtual void OnDragExited() OVERRIDE; 225 virtual void OnDragExited() OVERRIDE;
225 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; 226 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
226 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 227 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
227 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE; 228 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 void OwnDragController(TabDragController* controller); 403 void OwnDragController(TabDragController* controller);
403 404
404 // Destroys the current TabDragController. This cancel the existing drag 405 // Destroys the current TabDragController. This cancel the existing drag
405 // operation. 406 // operation.
406 void DestroyDragController(); 407 void DestroyDragController();
407 408
408 // Releases ownership of the current TabDragController. 409 // Releases ownership of the current TabDragController.
409 TabDragController* ReleaseDragController(); 410 TabDragController* ReleaseDragController();
410 411
411 // Paints all the tabs in |tabs_closing_map_[index]|. 412 // Paints all the tabs in |tabs_closing_map_[index]|.
412 void PaintClosingTabs(gfx::Canvas* canvas, int index); 413 void PaintClosingTabs(gfx::Canvas* canvas,
414 int index,
415 const views::CullSet& cull_set);
413 416
414 // Invoked when a mouse event occurs over |source|. Potentially switches the 417 // Invoked when a mouse event occurs over |source|. Potentially switches the
415 // layout type. 418 // layout type.
416 void UpdateLayoutTypeFromMouseEvent(views::View* source, 419 void UpdateLayoutTypeFromMouseEvent(views::View* source,
417 const ui::MouseEvent& event); 420 const ui::MouseEvent& event);
418 421
419 // -- Tab Resize Layout ----------------------------------------------------- 422 // -- Tab Resize Layout -----------------------------------------------------
420 423
421 // Returns the exact (unrounded) current width of each tab. 424 // Returns the exact (unrounded) current width of each tab.
422 void GetCurrentTabWidths(double* unselected_width, 425 void GetCurrentTabWidths(double* unselected_width,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 bool immersive_style_; 637 bool immersive_style_;
635 638
636 // Our observers. 639 // Our observers.
637 typedef ObserverList<TabStripObserver> TabStripObservers; 640 typedef ObserverList<TabStripObserver> TabStripObservers;
638 TabStripObservers observers_; 641 TabStripObservers observers_;
639 642
640 DISALLOW_COPY_AND_ASSIGN(TabStrip); 643 DISALLOW_COPY_AND_ASSIGN(TabStrip);
641 }; 644 };
642 645
643 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 646 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698