| OLD | NEW |
| 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 <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // SprocketLayout system. Alternative Layout Managers implementing the | 84 // SprocketLayout system. Alternative Layout Managers implementing the |
| 85 // LayoutManager interface can be used to lay out children if required. | 85 // LayoutManager interface can be used to lay out children if required. |
| 86 // | 86 // |
| 87 // It is up to the subclass to implement Painting and storage of subclass - | 87 // It is up to the subclass to implement Painting and storage of subclass - |
| 88 // specific properties and functionality. | 88 // specific properties and functionality. |
| 89 // | 89 // |
| 90 // Unless otherwise documented, views is not thread safe and should only be | 90 // Unless otherwise documented, views is not thread safe and should only be |
| 91 // accessed from the main thread. | 91 // accessed from the main thread. |
| 92 // | 92 // |
| 93 ///////////////////////////////////////////////////////////////////////////// | 93 ///////////////////////////////////////////////////////////////////////////// |
| 94 class VIEWS_API View : public AcceleratorTarget { | 94 class VIEWS_EXPORT View : public AcceleratorTarget { |
| 95 public: | 95 public: |
| 96 typedef std::vector<View*> Views; | 96 typedef std::vector<View*> Views; |
| 97 | 97 |
| 98 // TO BE MOVED --------------------------------------------------------------- | 98 // TO BE MOVED --------------------------------------------------------------- |
| 99 // TODO(beng): These methods are to be moved to other files/classes. | 99 // TODO(beng): These methods are to be moved to other files/classes. |
| 100 | 100 |
| 101 // TODO(beng): delete | 101 // TODO(beng): delete |
| 102 // Set whether this view is hottracked. A disabled view cannot be hottracked. | 102 // Set whether this view is hottracked. A disabled view cannot be hottracked. |
| 103 // If flag differs from the current value, SchedulePaint is invoked. | 103 // If flag differs from the current value, SchedulePaint is invoked. |
| 104 virtual void SetHotTracked(bool flag); | 104 virtual void SetHotTracked(bool flag); |
| (...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1440 #if defined(OS_WIN) | 1440 #if defined(OS_WIN) |
| 1441 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_; | 1441 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_; |
| 1442 #endif | 1442 #endif |
| 1443 | 1443 |
| 1444 DISALLOW_COPY_AND_ASSIGN(View); | 1444 DISALLOW_COPY_AND_ASSIGN(View); |
| 1445 }; | 1445 }; |
| 1446 | 1446 |
| 1447 } // namespace views | 1447 } // namespace views |
| 1448 | 1448 |
| 1449 #endif // VIEWS_VIEW_H_ | 1449 #endif // VIEWS_VIEW_H_ |
| OLD | NEW |