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

Unified Diff: ui/app_list/views/speech_view.cc

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: ui/app_list/views/speech_view.cc
diff --git a/ui/app_list/views/speech_view.cc b/ui/app_list/views/speech_view.cc
index 56df2fcd0c51fc32d1b32dfdbab1ef912a18db77..2a4f79e7dc90ad8b2ca302b29321984b9595b777 100644
--- a/ui/app_list/views/speech_view.cc
+++ b/ui/app_list/views/speech_view.cc
@@ -75,7 +75,7 @@ class MicButton : public views::ImageButton {
private:
// Overridden from views::View:
- virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
+ virtual bool HitTestRect(const gfx::RectF& rect) const OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(MicButton);
};
@@ -85,7 +85,7 @@ MicButton::MicButton(views::ButtonListener* listener)
MicButton::~MicButton() {}
-bool MicButton::HitTestRect(const gfx::Rect& rect) const {
+bool MicButton::HitTestRect(const gfx::RectF& rect) const {
if (!views::ImageButton::HitTestRect(rect))
return false;

Powered by Google App Engine
This is Rietveld 408576698