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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/tab_icon_view.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 217 virtual void PaintChildren(gfx::Canvas* canvas,
218 const views::CullSet& cull_set) OVERRIDE; 218 const views::CullSet& cull_set) OVERRIDE;
219 virtual const char* GetClassName() const OVERRIDE; 219 virtual const char* GetClassName() const OVERRIDE;
220 virtual gfx::Size GetPreferredSize() OVERRIDE; 220 virtual gfx::Size GetPreferredSize() const OVERRIDE;
221 // 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
222 // 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.
223 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; 223 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE;
224 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; 224 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE;
225 virtual void OnDragExited() OVERRIDE; 225 virtual void OnDragExited() OVERRIDE;
226 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; 226 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
227 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 227 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
228 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE; 228 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE;
229 virtual views::View* GetTooltipHandlerForPoint( 229 virtual views::View* GetTooltipHandlerForPoint(
230 const gfx::Point& point) OVERRIDE; 230 const gfx::Point& point) OVERRIDE;
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 bool immersive_style_; 637 bool immersive_style_;
638 638
639 // Our observers. 639 // Our observers.
640 typedef ObserverList<TabStripObserver> TabStripObservers; 640 typedef ObserverList<TabStripObserver> TabStripObservers;
641 TabStripObservers observers_; 641 TabStripObservers observers_;
642 642
643 DISALLOW_COPY_AND_ASSIGN(TabStrip); 643 DISALLOW_COPY_AND_ASSIGN(TabStrip);
644 }; 644 };
645 645
646 #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/tab_icon_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