OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_VIEW_H_ | 5 #ifndef UI_VIEWS_VIEW_H_ |
6 #define UI_VIEWS_VIEW_H_ | 6 #define UI_VIEWS_VIEW_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 virtual FocusTraversable* GetPaneFocusTraversable(); | 825 virtual FocusTraversable* GetPaneFocusTraversable(); |
826 | 826 |
827 // Tooltips ------------------------------------------------------------------ | 827 // Tooltips ------------------------------------------------------------------ |
828 | 828 |
829 // Gets the tooltip for this View. If the View does not have a tooltip, | 829 // Gets the tooltip for this View. If the View does not have a tooltip, |
830 // return false. If the View does have a tooltip, copy the tooltip into | 830 // return false. If the View does have a tooltip, copy the tooltip into |
831 // the supplied string and return true. | 831 // the supplied string and return true. |
832 // Any time the tooltip text that a View is displaying changes, it must | 832 // Any time the tooltip text that a View is displaying changes, it must |
833 // invoke TooltipTextChanged. | 833 // invoke TooltipTextChanged. |
834 // |p| provides the coordinates of the mouse (relative to this view). | 834 // |p| provides the coordinates of the mouse (relative to this view). |
835 virtual bool GetTooltipText(const gfx::Point& p, string16* tooltip) const; | 835 virtual bool GetTooltipText(const gfx::Point& p, |
| 836 base::string16* tooltip) const; |
836 | 837 |
837 // Returns the location (relative to this View) for the text on the tooltip | 838 // Returns the location (relative to this View) for the text on the tooltip |
838 // to display. If false is returned (the default), the tooltip is placed at | 839 // to display. If false is returned (the default), the tooltip is placed at |
839 // a default position. | 840 // a default position. |
840 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* loc) const; | 841 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* loc) const; |
841 | 842 |
842 // Context menus ------------------------------------------------------------- | 843 // Context menus ------------------------------------------------------------- |
843 | 844 |
844 // Sets the ContextMenuController. Setting this to non-null makes the View | 845 // Sets the ContextMenuController. Setting this to non-null makes the View |
845 // process mouse events. | 846 // process mouse events. |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1557 // Belongs to this view, but it's reference-counted on some platforms | 1558 // Belongs to this view, but it's reference-counted on some platforms |
1558 // so we can't use a scoped_ptr. It's dereferenced in the destructor. | 1559 // so we can't use a scoped_ptr. It's dereferenced in the destructor. |
1559 NativeViewAccessibility* native_view_accessibility_; | 1560 NativeViewAccessibility* native_view_accessibility_; |
1560 | 1561 |
1561 DISALLOW_COPY_AND_ASSIGN(View); | 1562 DISALLOW_COPY_AND_ASSIGN(View); |
1562 }; | 1563 }; |
1563 | 1564 |
1564 } // namespace views | 1565 } // namespace views |
1565 | 1566 |
1566 #endif // UI_VIEWS_VIEW_H_ | 1567 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |