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

Unified Diff: views/view.cc

Issue 6880201: Scrap WNDCLASSEX.hCursor, update GetCursorForPoint, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use brace style struct init for WNDCLASSEX |class_ex|, fix comment. Created 9 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
« no previous file with comments | « views/view.h ('k') | views/widget/root_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index 9d1c97637e4852be05799a7cc84675415fa01080..177fa4b585acba71808fa212b8dadf496d809dd9 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -769,11 +769,16 @@ View* View::GetEventHandlerForPoint(const gfx::Point& point) {
gfx::NativeCursor View::GetCursorForPoint(ui::EventType event_type,
const gfx::Point& p) {
+#if defined(OS_WIN)
+ static HCURSOR arrow = LoadCursor(NULL, IDC_ARROW);
+ return arrow;
+#else
return NULL;
+#endif
}
bool View::HitTest(const gfx::Point& l) const {
- if (l.x() >= 0 && l.x() < width() && l.y() >= 0 && l.y() < height()) {
+ if (GetLocalBounds().Contains(l)) {
if (HasHitTestMask()) {
gfx::Path mask;
GetHitTestMask(&mask);
« no previous file with comments | « views/view.h ('k') | views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698