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

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

Issue 21268: Solved 2 bugs which caused Chrome to maximize itself when... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 virtual void ExecuteCommandForTab( 135 virtual void ExecuteCommandForTab(
136 TabStripModel::ContextMenuCommand command_id, Tab* tab); 136 TabStripModel::ContextMenuCommand command_id, Tab* tab);
137 virtual void StartHighlightTabsForCommand( 137 virtual void StartHighlightTabsForCommand(
138 TabStripModel::ContextMenuCommand command_id, Tab* tab); 138 TabStripModel::ContextMenuCommand command_id, Tab* tab);
139 virtual void StopHighlightTabsForCommand( 139 virtual void StopHighlightTabsForCommand(
140 TabStripModel::ContextMenuCommand command_id, Tab* tab); 140 TabStripModel::ContextMenuCommand command_id, Tab* tab);
141 virtual void StopAllHighlighting(); 141 virtual void StopAllHighlighting();
142 virtual void MaybeStartDrag(Tab* tab, const views::MouseEvent& event); 142 virtual void MaybeStartDrag(Tab* tab, const views::MouseEvent& event);
143 virtual void ContinueDrag(const views::MouseEvent& event); 143 virtual void ContinueDrag(const views::MouseEvent& event);
144 virtual bool EndDrag(bool canceled); 144 virtual bool EndDrag(bool canceled);
145 virtual bool ContainsExactlyOneTab() const;
145 146
146 // views::Button::ButtonListener implementation: 147 // views::Button::ButtonListener implementation:
147 virtual void ButtonPressed(views::BaseButton* sender); 148 virtual void ButtonPressed(views::BaseButton* sender);
148 149
149 // MessageLoop::Observer implementation: 150 // MessageLoop::Observer implementation:
150 virtual void WillProcessMessage(const MSG& msg); 151 virtual void WillProcessMessage(const MSG& msg);
151 virtual void DidProcessMessage(const MSG& msg); 152 virtual void DidProcessMessage(const MSG& msg);
152 153
153 private: 154 private:
154 friend class DraggedTabController; 155 friend class DraggedTabController;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 std::vector<TabData> tab_data_; 355 std::vector<TabData> tab_data_;
355 356
356 // The currently running animation. 357 // The currently running animation.
357 scoped_ptr<TabAnimation> active_animation_; 358 scoped_ptr<TabAnimation> active_animation_;
358 359
359 DISALLOW_EVIL_CONSTRUCTORS(TabStrip); 360 DISALLOW_EVIL_CONSTRUCTORS(TabStrip);
360 }; 361 };
361 362
362 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ 363 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__
363 364
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698