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

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

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/tabs/base_tab.cc ('k') | chrome/browser/ui/views/tabs/tab.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_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 private: 68 private:
69 // Overridden from views::View: 69 // Overridden from views::View:
70 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 70 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
71 virtual void Layout() OVERRIDE; 71 virtual void Layout() OVERRIDE;
72 virtual void OnThemeChanged() OVERRIDE; 72 virtual void OnThemeChanged() OVERRIDE;
73 virtual std::string GetClassName() const OVERRIDE; 73 virtual std::string GetClassName() const OVERRIDE;
74 virtual bool HasHitTestMask() const OVERRIDE; 74 virtual bool HasHitTestMask() const OVERRIDE;
75 virtual void GetHitTestMask(gfx::Path* path) const OVERRIDE; 75 virtual void GetHitTestMask(gfx::Path* path) const OVERRIDE;
76 virtual bool GetTooltipTextOrigin(const gfx::Point& p, 76 virtual bool GetTooltipTextOrigin(const gfx::Point& p,
77 gfx::Point* origin) const OVERRIDE; 77 gfx::Point* origin) const OVERRIDE;
78 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; 78 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
79 79
80 // Paint various portions of the Tab 80 // Paint various portions of the Tab
81 gfx::ImageSkia* GetTabBackgroundImage(chrome::search::Mode::Type mode) const; 81 gfx::ImageSkia* GetTabBackgroundImage(chrome::search::Mode::Type mode) const;
82 void PaintTabBackground(gfx::Canvas* canvas); 82 void PaintTabBackground(gfx::Canvas* canvas);
83 void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas); 83 void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas);
84 void PaintInactiveTabBackground(gfx::Canvas* canvas); 84 void PaintInactiveTabBackground(gfx::Canvas* canvas);
85 void PaintActiveTabBackground(gfx::Canvas* canvas, 85 void PaintActiveTabBackground(gfx::Canvas* canvas,
86 gfx::ImageSkia* tab_background); 86 gfx::ImageSkia* tab_background);
87 87
88 // Returns the number of favicon-size elements that can fit in the tab's 88 // Returns the number of favicon-size elements that can fit in the tab's
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // detect when it changes and layout appropriately. 138 // detect when it changes and layout appropriately.
139 bool showing_close_button_; 139 bool showing_close_button_;
140 140
141 // The current color of the close button. 141 // The current color of the close button.
142 SkColor close_button_color_; 142 SkColor close_button_color_;
143 143
144 DISALLOW_COPY_AND_ASSIGN(Tab); 144 DISALLOW_COPY_AND_ASSIGN(Tab);
145 }; 145 };
146 146
147 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 147 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/base_tab.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698