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

Side by Side Diff: views/view.h

Issue 6880201: Scrap WNDCLASSEX.hCursor, update GetCursorForPoint, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nix WindowWin cursors; only SetCuror on client events; add RootView::UpdateCursor Win arrow default. Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_VIEW_H_ 5 #ifndef VIEWS_VIEW_H_
6 #define VIEWS_VIEW_H_ 6 #define VIEWS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 // Enable/Disable accelerated compositing. 576 // Enable/Disable accelerated compositing.
577 static void set_use_acceleration_when_possible(bool use); 577 static void set_use_acceleration_when_possible(bool use);
578 578
579 // Input --------------------------------------------------------------------- 579 // Input ---------------------------------------------------------------------
580 // The points (and mouse locations) in the following functions are in the 580 // The points (and mouse locations) in the following functions are in the
581 // view's coordinates, except for a RootView. 581 // view's coordinates, except for a RootView.
582 582
583 // Returns the deepest visible descendant that contains the specified point. 583 // Returns the deepest visible descendant that contains the specified point.
584 virtual View* GetEventHandlerForPoint(const gfx::Point& point); 584 virtual View* GetEventHandlerForPoint(const gfx::Point& point);
585 585
586 // Return the cursor that should be used for this view or NULL if 586 // Return the cursor that should be used for this view or the default cursor.
Peter Kasting 2011/04/27 00:22:12 Nit: This still can return NULL in some cases. Sh
msw 2011/04/27 01:58:03 With native cursor types, NULL should be used expl
587 // the default cursor should be used. The provided point is in the 587 // The provided point is in the receiver's coordinate system. The caller is
588 // receiver's coordinate system. The caller is responsible for managing the 588 // responsible for managing the lifetime of the returned object, though that
589 // lifetime of the returned object, though that lifetime may vary from 589 // lifetime may vary from platform to platform. On Windows, the cursor is a
590 // platform to platform. On Windows, the cursor is a shared resource but in 590 //shared resource but Gtk destroys the returned cursor after setting it.
Peter Kasting 2011/04/27 00:22:12 Nit: Initial space; comma after "resource"
msw 2011/04/27 01:58:03 Done.
591 // Gtk, the framework destroys the returned cursor after setting it.
592 virtual gfx::NativeCursor GetCursorForPoint(ui::EventType event_type, 591 virtual gfx::NativeCursor GetCursorForPoint(ui::EventType event_type,
593 const gfx::Point& p); 592 const gfx::Point& p);
594 593
595 // Convenience to test whether a point is within this view's bounds 594 // Convenience to test whether a point is within this view's bounds
596 virtual bool HitTest(const gfx::Point& l) const; 595 virtual bool HitTest(const gfx::Point& l) const;
597 596
598 // This method is invoked when the user clicks on this view. 597 // This method is invoked when the user clicks on this view.
599 // The provided event is in the receiver's coordinate system. 598 // The provided event is in the receiver's coordinate system.
600 // 599 //
601 // Return true if you processed the event and want to receive subsequent 600 // Return true if you processed the event and want to receive subsequent
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 // The Windows-specific accessibility implementation for this View. 1409 // The Windows-specific accessibility implementation for this View.
1411 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_; 1410 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_;
1412 #endif 1411 #endif
1413 1412
1414 DISALLOW_COPY_AND_ASSIGN(View); 1413 DISALLOW_COPY_AND_ASSIGN(View);
1415 }; 1414 };
1416 1415
1417 } // namespace views 1416 } // namespace views
1418 1417
1419 #endif // VIEWS_VIEW_H_ 1418 #endif // VIEWS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698