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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.h

Issue 265713007: views: Update event-related API to use PointF/RectF instead of Point/Rect. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tabs/tab_strip.h
diff --git a/chrome/browser/ui/views/tabs/tab_strip.h b/chrome/browser/ui/views/tabs/tab_strip.h
index 0e717bee2fa152a4d9a4cfd153713167ec101bec..893d65d9cf9c1e5d9d0b729112fefbc92e72fbfc 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.h
+++ b/chrome/browser/ui/views/tabs/tab_strip.h
@@ -155,11 +155,11 @@ class TabStrip : public views::View,
// Returns true if the specified point (in TabStrip coordinates) is in the
// window caption area of the browser window.
- bool IsPositionInWindowCaption(const gfx::Point& point);
+ bool IsPositionInWindowCaption(const gfx::PointF& point);
// Returns true if the specified rect (in TabStrip coordinates) intersects
// the window caption area of the browser window.
- bool IsRectInWindowCaption(const gfx::Rect& rect);
+ bool IsRectInWindowCaption(const gfx::RectF& rect);
// Set the background offset used by inactive tabs to match the frame image.
void SetBackgroundOffset(const gfx::Point& offset);
@@ -224,7 +224,7 @@ class TabStrip : public views::View,
virtual void OnDragExited() OVERRIDE;
virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
- virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE;
+ virtual views::View* GetEventHandlerForRect(const gfx::RectF& rect) OVERRIDE;
virtual views::View* GetTooltipHandlerForPoint(
const gfx::Point& point) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698