| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TOUCH_TABS_TOUCH_TAB_H_ | 5 #ifndef CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_H_ | 
| 6 #define CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_H_ | 6 #define CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include <string> | 9 #include <string> | 
| 10 | 10 | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
| 35 | 35 | 
| 36   // Returns the minimum possible size of a single unselected Tab. | 36   // Returns the minimum possible size of a single unselected Tab. | 
| 37   static gfx::Size GetMinimumUnselectedSize(); | 37   static gfx::Size GetMinimumUnselectedSize(); | 
| 38 | 38 | 
| 39  protected: | 39  protected: | 
| 40   virtual const gfx::Rect& GetTitleBounds() const; | 40   virtual const gfx::Rect& GetTitleBounds() const; | 
| 41   virtual const gfx::Rect& GetIconBounds() const; | 41   virtual const gfx::Rect& GetIconBounds() const; | 
| 42 | 42 | 
| 43  private: | 43  private: | 
| 44   // Overridden from views::View: | 44   // Overridden from views::View: | 
|  | 45   virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 
|  | 46   virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 
|  | 47   virtual void OnMouseReleased(const views::MouseEvent& event, | 
|  | 48                                bool canceled) OVERRIDE; | 
| 45   virtual void OnPaint(gfx::Canvas* canvas); | 49   virtual void OnPaint(gfx::Canvas* canvas); | 
| 46   virtual void Layout(); | 50   virtual void Layout(); | 
| 47   virtual bool HasHitTestMask() const; | 51   virtual bool HasHitTestMask() const; | 
| 48   virtual void GetHitTestMask(gfx::Path* path) const; | 52   virtual void GetHitTestMask(gfx::Path* path) const; | 
| 49 | 53 | 
| 50   // Paint various portions of the Tab | 54   // Paint various portions of the Tab | 
| 51   void PaintTabBackground(gfx::Canvas* canvas); | 55   void PaintTabBackground(gfx::Canvas* canvas); | 
| 52   void PaintIcon(gfx::Canvas* canvas); | 56   void PaintIcon(gfx::Canvas* canvas); | 
| 53   void PaintActiveTabBackground(gfx::Canvas* canvas); | 57   void PaintActiveTabBackground(gfx::Canvas* canvas); | 
| 54 | 58 | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 82     int y_offset; | 86     int y_offset; | 
| 83   }; | 87   }; | 
| 84   static TouchTabImage tab_active; | 88   static TouchTabImage tab_active; | 
| 85   static TouchTabImage tab_inactive; | 89   static TouchTabImage tab_inactive; | 
| 86   static TouchTabImage tab_alpha; | 90   static TouchTabImage tab_alpha; | 
| 87 | 91 | 
| 88   DISALLOW_COPY_AND_ASSIGN(TouchTab); | 92   DISALLOW_COPY_AND_ASSIGN(TouchTab); | 
| 89 }; | 93 }; | 
| 90 | 94 | 
| 91 #endif  // CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_H_ | 95 #endif  // CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_H_ | 
| OLD | NEW | 
|---|