| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_VIEW_H_ | 5 #ifndef CHROME_VIEWS_VIEW_H_ |
| 6 #define CHROME_VIEWS_VIEW_H_ | 6 #define CHROME_VIEWS_VIEW_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 // The background object is owned by this object and may be NULL. | 891 // The background object is owned by this object and may be NULL. |
| 892 void set_background(Background* b) { background_.reset(b); } | 892 void set_background(Background* b) { background_.reset(b); } |
| 893 const Background* background() const { return background_.get(); } | 893 const Background* background() const { return background_.get(); } |
| 894 | 894 |
| 895 // The border object is owned by this object and may be NULL. | 895 // The border object is owned by this object and may be NULL. |
| 896 void set_border(Border* b) { border_.reset(b); } | 896 void set_border(Border* b) { border_.reset(b); } |
| 897 const Border* border() const { return border_.get(); } | 897 const Border* border() const { return border_.get(); } |
| 898 | 898 |
| 899 // Returns the insets of the current border. If there is no border an empty | 899 // Returns the insets of the current border. If there is no border an empty |
| 900 // insets is returned. | 900 // insets is returned. |
| 901 gfx::Insets GetInsets() const; | 901 virtual gfx::Insets GetInsets() const; |
| 902 | 902 |
| 903 #if defined(OS_WIN) | 903 #if defined(OS_WIN) |
| 904 // TODO(port): Make GetCursorForPoint portable. | 904 // TODO(port): Make GetCursorForPoint portable. |
| 905 | 905 |
| 906 // Return the cursor that should be used for this view or NULL if | 906 // Return the cursor that should be used for this view or NULL if |
| 907 // the default cursor should be used. The provided point is in the | 907 // the default cursor should be used. The provided point is in the |
| 908 // receiver's coordinate system. | 908 // receiver's coordinate system. |
| 909 virtual HCURSOR GetCursorForPoint(Event::EventType event_type, int x, int y); | 909 virtual HCURSOR GetCursorForPoint(Event::EventType event_type, int x, int y); |
| 910 #endif // defined(OS_WIN) | 910 #endif // defined(OS_WIN) |
| 911 | 911 |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 // is going to be flipped horizontally (using the appropriate transform) on | 1337 // is going to be flipped horizontally (using the appropriate transform) on |
| 1338 // right-to-left locales for this View. | 1338 // right-to-left locales for this View. |
| 1339 bool flip_canvas_on_paint_for_rtl_ui_; | 1339 bool flip_canvas_on_paint_for_rtl_ui_; |
| 1340 | 1340 |
| 1341 DISALLOW_COPY_AND_ASSIGN(View); | 1341 DISALLOW_COPY_AND_ASSIGN(View); |
| 1342 }; | 1342 }; |
| 1343 | 1343 |
| 1344 } // namespace views | 1344 } // namespace views |
| 1345 | 1345 |
| 1346 #endif // CHROME_VIEWS_VIEW_H_ | 1346 #endif // CHROME_VIEWS_VIEW_H_ |
| OLD | NEW |