| 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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 | 988 |
| 989 protected: | 989 protected: |
| 990 // The id of this View. Used to find this View. | 990 // The id of this View. Used to find this View. |
| 991 int id_; | 991 int id_; |
| 992 | 992 |
| 993 // The group of this view. Some view subclasses use this id to find other | 993 // The group of this view. Some view subclasses use this id to find other |
| 994 // views of the same group. For example radio button uses this information | 994 // views of the same group. For example radio button uses this information |
| 995 // to find other radio buttons. | 995 // to find other radio buttons. |
| 996 int group_; | 996 int group_; |
| 997 | 997 |
| 998 // Called when the UI theme has changed, overriding allows individual Views to |
| 999 // do special cleanup and processing (such as dropping resource caches). |
| 1000 // Subclasses that override this method must call the base class |
| 1001 // implementation to ensure child views are processed. |
| 1002 // Can only be called by subclasses. To dispatch a theme changed notification, |
| 1003 // call this method on the RootView. |
| 1004 virtual void ThemeChanged(); |
| 1005 |
| 998 #ifndef NDEBUG | 1006 #ifndef NDEBUG |
| 999 // Returns true if the View is currently processing a paint. | 1007 // Returns true if the View is currently processing a paint. |
| 1000 virtual bool IsProcessingPaint() const; | 1008 virtual bool IsProcessingPaint() const; |
| 1001 #endif | 1009 #endif |
| 1002 | 1010 |
| 1003 // Returns the location, in screen coordinates, to show the context menu at | 1011 // Returns the location, in screen coordinates, to show the context menu at |
| 1004 // when the context menu is shown from the keyboard. This implementation | 1012 // when the context menu is shown from the keyboard. This implementation |
| 1005 // returns the middle of the visible region of this view. | 1013 // returns the middle of the visible region of this view. |
| 1006 // | 1014 // |
| 1007 // This method is invoked when the context menu is shown by way of the | 1015 // This method is invoked when the context menu is shown by way of the |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1325 // is going to be flipped horizontally (using the appropriate transform) on | 1333 // is going to be flipped horizontally (using the appropriate transform) on |
| 1326 // right-to-left locales for this View. | 1334 // right-to-left locales for this View. |
| 1327 bool flip_canvas_on_paint_for_rtl_ui_; | 1335 bool flip_canvas_on_paint_for_rtl_ui_; |
| 1328 | 1336 |
| 1329 DISALLOW_COPY_AND_ASSIGN(View); | 1337 DISALLOW_COPY_AND_ASSIGN(View); |
| 1330 }; | 1338 }; |
| 1331 | 1339 |
| 1332 } // namespace views | 1340 } // namespace views |
| 1333 | 1341 |
| 1334 #endif // CHROME_VIEWS_VIEW_H_ | 1342 #endif // CHROME_VIEWS_VIEW_H_ |
| OLD | NEW |