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

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

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_TABS_TAB_STRIP_H__ 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__
6 #define CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__
7 7
8 #include "base/gfx/point.h" 8 #include "base/gfx/point.h"
9 #include "chrome/browser/tabs/tab_strip_model.h" 9 #include "chrome/browser/tabs/tab_strip_model.h"
10 #include "chrome/browser/views/tabs/tab.h" 10 #include "chrome/browser/views/tabs/tab.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void DestroyDraggedSourceTab(Tab* tab); 94 void DestroyDraggedSourceTab(Tab* tab);
95 95
96 // Retrieve the ideal bounds for the Tab at the specified index. 96 // Retrieve the ideal bounds for the Tab at the specified index.
97 gfx::Rect GetIdealBounds(int index); 97 gfx::Rect GetIdealBounds(int index);
98 98
99 // ChromeViews::View overrides: 99 // ChromeViews::View overrides:
100 virtual void PaintChildren(ChromeCanvas* canvas); 100 virtual void PaintChildren(ChromeCanvas* canvas);
101 virtual void DidChangeBounds(const CRect& previous, const CRect& current); 101 virtual void DidChangeBounds(const CRect& previous, const CRect& current);
102 virtual ChromeViews::View* GetViewByID(int id) const; 102 virtual ChromeViews::View* GetViewByID(int id) const;
103 virtual void Layout(); 103 virtual void Layout();
104 virtual void GetPreferredSize(CSize* preferred_size); 104 virtual gfx::Size GetPreferredSize();
105 // NOTE: the drag and drop methods are invoked from FrameView. This is done to 105 // NOTE: the drag and drop methods are invoked from FrameView. This is done to
106 // allow for a drop region that extends outside the bounds of the TabStrip. 106 // allow for a drop region that extends outside the bounds of the TabStrip.
107 virtual void OnDragEntered(const ChromeViews::DropTargetEvent& event); 107 virtual void OnDragEntered(const ChromeViews::DropTargetEvent& event);
108 virtual int OnDragUpdated(const ChromeViews::DropTargetEvent& event); 108 virtual int OnDragUpdated(const ChromeViews::DropTargetEvent& event);
109 virtual void OnDragExited(); 109 virtual void OnDragExited();
110 virtual int OnPerformDrop(const ChromeViews::DropTargetEvent& event); 110 virtual int OnPerformDrop(const ChromeViews::DropTargetEvent& event);
111 virtual bool GetAccessibleRole(VARIANT* role); 111 virtual bool GetAccessibleRole(VARIANT* role);
112 virtual bool GetAccessibleName(std::wstring* name); 112 virtual bool GetAccessibleName(std::wstring* name);
113 virtual void SetAccessibleName(const std::wstring& name); 113 virtual void SetAccessibleName(const std::wstring& name);
114 virtual ChromeViews::View* GetViewForPoint(const gfx::Point& point); 114 virtual ChromeViews::View* GetViewForPoint(const gfx::Point& point);
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 std::vector<TabData> tab_data_; 364 std::vector<TabData> tab_data_;
365 365
366 // The currently running animation. 366 // The currently running animation.
367 scoped_ptr<TabAnimation> active_animation_; 367 scoped_ptr<TabAnimation> active_animation_;
368 368
369 DISALLOW_EVIL_CONSTRUCTORS(TabStrip); 369 DISALLOW_EVIL_CONSTRUCTORS(TabStrip);
370 }; 370 };
371 371
372 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ 372 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__
373 373
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698