| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Unless otherwise documented, views is not thread safe and should only be | 109 // Unless otherwise documented, views is not thread safe and should only be |
| 110 // accessed from the main thread. | 110 // accessed from the main thread. |
| 111 // | 111 // |
| 112 ///////////////////////////////////////////////////////////////////////////// | 112 ///////////////////////////////////////////////////////////////////////////// |
| 113 class VIEWS_EXPORT View : public ui::LayerDelegate, | 113 class VIEWS_EXPORT View : public ui::LayerDelegate, |
| 114 public ui::LayerOwner, | 114 public ui::LayerOwner, |
| 115 public ui::AcceleratorTarget, | 115 public ui::AcceleratorTarget, |
| 116 public ui::EventTarget, | 116 public ui::EventTarget, |
| 117 public ui::EventHandler { | 117 public ui::EventHandler { |
| 118 public: | 118 public: |
| 119 typedef std::vector<View*> Views; | 119 using Views = std::vector<View*>; |
| 120 | 120 |
| 121 enum class FocusBehavior { | 121 enum class FocusBehavior { |
| 122 // Use when the View is never focusable. Default. | 122 // Use when the View is never focusable. Default. |
| 123 NEVER, | 123 NEVER, |
| 124 | 124 |
| 125 // Use when the View is to be focusable both in regular and accessibility | 125 // Use when the View is to be focusable both in regular and accessibility |
| 126 // mode. | 126 // mode. |
| 127 ALWAYS, | 127 ALWAYS, |
| 128 | 128 |
| 129 // Use when the View is focusable only during accessibility mode. | 129 // Use when the View is focusable only during accessibility mode. |
| (...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 // Observers ------------------------------------------------------------- | 1615 // Observers ------------------------------------------------------------- |
| 1616 | 1616 |
| 1617 base::ObserverList<ViewObserver> observers_; | 1617 base::ObserverList<ViewObserver> observers_; |
| 1618 | 1618 |
| 1619 DISALLOW_COPY_AND_ASSIGN(View); | 1619 DISALLOW_COPY_AND_ASSIGN(View); |
| 1620 }; | 1620 }; |
| 1621 | 1621 |
| 1622 } // namespace views | 1622 } // namespace views |
| 1623 | 1623 |
| 1624 #endif // UI_VIEWS_VIEW_H_ | 1624 #endif // UI_VIEWS_VIEW_H_ |
| OLD | NEW |