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

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

Issue 22891016: Add support for rect-based event targeting in views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests added Created 7 years, 1 month 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) 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 <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 virtual void ShowContextMenuForView(views::View* source, 164 virtual void ShowContextMenuForView(views::View* source,
165 const gfx::Point& point, 165 const gfx::Point& point,
166 ui::MenuSourceType source_type) OVERRIDE; 166 ui::MenuSourceType source_type) OVERRIDE;
167 167
168 // Overridden from views::View: 168 // Overridden from views::View:
169 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 169 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
170 virtual void Layout() OVERRIDE; 170 virtual void Layout() OVERRIDE;
171 virtual void OnThemeChanged() OVERRIDE; 171 virtual void OnThemeChanged() OVERRIDE;
172 virtual const char* GetClassName() const OVERRIDE; 172 virtual const char* GetClassName() const OVERRIDE;
173 virtual bool HasHitTestMask() const OVERRIDE; 173 virtual bool HasHitTestMask() const OVERRIDE;
174 virtual void GetHitTestMask(gfx::Path* path) const OVERRIDE; 174 virtual void GetHitTestMask(gfx::Path* path,
175 HitTestSource source = HIT_TEST_SOURCE_MOUSE) const OVERRIDE;
175 virtual bool GetTooltipText(const gfx::Point& p, 176 virtual bool GetTooltipText(const gfx::Point& p,
176 string16* tooltip) const OVERRIDE; 177 string16* tooltip) const OVERRIDE;
177 virtual bool GetTooltipTextOrigin(const gfx::Point& p, 178 virtual bool GetTooltipTextOrigin(const gfx::Point& p,
178 gfx::Point* origin) const OVERRIDE; 179 gfx::Point* origin) const OVERRIDE;
179 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; 180 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE;
180 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 181 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
181 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 182 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
182 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 183 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
183 virtual void OnMouseCaptureLost() OVERRIDE; 184 virtual void OnMouseCaptureLost() OVERRIDE;
184 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 185 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 static int font_height_; 377 static int font_height_;
377 378
378 // As the majority of the tabs are inactive, and painting tabs is slowish, 379 // As the majority of the tabs are inactive, and painting tabs is slowish,
379 // we cache a handful of the inactive tab backgrounds here. 380 // we cache a handful of the inactive tab backgrounds here.
380 static ImageCache* image_cache_; 381 static ImageCache* image_cache_;
381 382
382 DISALLOW_COPY_AND_ASSIGN(Tab); 383 DISALLOW_COPY_AND_ASSIGN(Tab);
383 }; 384 };
384 385
385 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 386 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698