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

Unified Diff: ash/frame/custom_frame_view_ash.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: ash/frame/custom_frame_view_ash.cc
diff --git a/ash/frame/custom_frame_view_ash.cc b/ash/frame/custom_frame_view_ash.cc
index 8ab7e23be865b2ec1d9ec47dc7bcd44872aaf143..4e124ed1ac38e23b8eb8e42cfd15900ea826e88a 100644
--- a/ash/frame/custom_frame_view_ash.cc
+++ b/ash/frame/custom_frame_view_ash.cc
@@ -391,7 +391,7 @@ class CustomFrameViewAsh::OverlayView : public views::View {
// views::View override:
virtual void Layout() OVERRIDE;
- virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
+ virtual bool HitTestRect(const gfx::RectF& rect) const OVERRIDE;
private:
HeaderView* header_view_;
@@ -425,7 +425,8 @@ void CustomFrameViewAsh::OverlayView::Layout() {
}
}
-bool CustomFrameViewAsh::OverlayView::HitTestRect(const gfx::Rect& rect) const {
+bool CustomFrameViewAsh::OverlayView::HitTestRect(
+ const gfx::RectF& rect) const {
// Grab events in the header view. Return false for other events so that they
// can be handled by the client view.
return header_view_->HitTestRect(rect);
@@ -548,7 +549,7 @@ void CustomFrameViewAsh::SchedulePaintInRect(const gfx::Rect& r) {
}
}
-bool CustomFrameViewAsh::HitTestRect(const gfx::Rect& rect) const {
+bool CustomFrameViewAsh::HitTestRect(const gfx::RectF& rect) const {
// NonClientView hit tests the NonClientFrameView first instead of going in
// z-order. Return false so that events get to the OverlayView.
return false;

Powered by Google App Engine
This is Rietveld 408576698