| 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 18 matching lines...) Expand all Loading... |
| 29 #include "ui/compositor/layer_owner.h" | 29 #include "ui/compositor/layer_owner.h" |
| 30 #include "ui/compositor/paint_cache.h" | 30 #include "ui/compositor/paint_cache.h" |
| 31 #include "ui/events/event.h" | 31 #include "ui/events/event.h" |
| 32 #include "ui/events/event_target.h" | 32 #include "ui/events/event_target.h" |
| 33 #include "ui/gfx/geometry/insets.h" | 33 #include "ui/gfx/geometry/insets.h" |
| 34 #include "ui/gfx/geometry/point.h" | 34 #include "ui/gfx/geometry/point.h" |
| 35 #include "ui/gfx/geometry/rect.h" | 35 #include "ui/gfx/geometry/rect.h" |
| 36 #include "ui/gfx/geometry/vector2d.h" | 36 #include "ui/gfx/geometry/vector2d.h" |
| 37 #include "ui/gfx/native_widget_types.h" | 37 #include "ui/gfx/native_widget_types.h" |
| 38 #include "ui/gfx/path.h" | 38 #include "ui/gfx/path.h" |
| 39 #include "ui/views/accessibility/native_view_accessibility.h" |
| 39 #include "ui/views/view_targeter.h" | 40 #include "ui/views/view_targeter.h" |
| 40 #include "ui/views/views_export.h" | 41 #include "ui/views/views_export.h" |
| 41 | 42 |
| 42 #if defined(OS_WIN) | 43 #if defined(OS_WIN) |
| 43 #include "base/win/scoped_comptr.h" | 44 #include "base/win/scoped_comptr.h" |
| 44 #endif | 45 #endif |
| 45 | 46 |
| 46 using ui::OSExchangeData; | 47 using ui::OSExchangeData; |
| 47 | 48 |
| 48 namespace gfx { | 49 namespace gfx { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 65 | 66 |
| 66 namespace views { | 67 namespace views { |
| 67 | 68 |
| 68 class Background; | 69 class Background; |
| 69 class Border; | 70 class Border; |
| 70 class ContextMenuController; | 71 class ContextMenuController; |
| 71 class DragController; | 72 class DragController; |
| 72 class FocusManager; | 73 class FocusManager; |
| 73 class FocusTraversable; | 74 class FocusTraversable; |
| 74 class LayoutManager; | 75 class LayoutManager; |
| 75 class NativeViewAccessibility; | |
| 76 class ScrollView; | 76 class ScrollView; |
| 77 class ViewObserver; | 77 class ViewObserver; |
| 78 class Widget; | 78 class Widget; |
| 79 class WordLookupClient; | 79 class WordLookupClient; |
| 80 | 80 |
| 81 namespace internal { | 81 namespace internal { |
| 82 class PreEventDispatchHandler; | 82 class PreEventDispatchHandler; |
| 83 class PostEventDispatchHandler; | 83 class PostEventDispatchHandler; |
| 84 class RootView; | 84 class RootView; |
| 85 class ScopedChildrenLock; | 85 class ScopedChildrenLock; |
| (...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 // function makes the decision explicit. | 1252 // function makes the decision explicit. |
| 1253 std::string DoPrintViewGraph(bool first, View* view_with_children); | 1253 std::string DoPrintViewGraph(bool first, View* view_with_children); |
| 1254 #endif | 1254 #endif |
| 1255 | 1255 |
| 1256 private: | 1256 private: |
| 1257 friend class internal::PreEventDispatchHandler; | 1257 friend class internal::PreEventDispatchHandler; |
| 1258 friend class internal::PostEventDispatchHandler; | 1258 friend class internal::PostEventDispatchHandler; |
| 1259 friend class internal::RootView; | 1259 friend class internal::RootView; |
| 1260 friend class internal::ScopedChildrenLock; | 1260 friend class internal::ScopedChildrenLock; |
| 1261 friend class FocusManager; | 1261 friend class FocusManager; |
| 1262 #if !defined(PLATFORM_HAS_NATIVE_VIEW_ACCESSIBILITY_IMPL) |
| 1263 friend class NativeViewAccessibility; |
| 1264 #endif |
| 1262 friend class ViewLayerTest; | 1265 friend class ViewLayerTest; |
| 1263 friend class Widget; | 1266 friend class Widget; |
| 1264 | 1267 |
| 1265 // Painting ----------------------------------------------------------------- | 1268 // Painting ----------------------------------------------------------------- |
| 1266 | 1269 |
| 1267 enum SchedulePaintType { | 1270 enum SchedulePaintType { |
| 1268 // Indicates the size is the same (only the origin changed). | 1271 // Indicates the size is the same (only the origin changed). |
| 1269 SCHEDULE_PAINT_SIZE_SAME, | 1272 SCHEDULE_PAINT_SIZE_SAME, |
| 1270 | 1273 |
| 1271 // Indicates the size changed (and possibly the origin). | 1274 // Indicates the size changed (and possibly the origin). |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1609 // Drag and drop ------------------------------------------------------------- | 1612 // Drag and drop ------------------------------------------------------------- |
| 1610 | 1613 |
| 1611 DragController* drag_controller_; | 1614 DragController* drag_controller_; |
| 1612 | 1615 |
| 1613 // Input -------------------------------------------------------------------- | 1616 // Input -------------------------------------------------------------------- |
| 1614 | 1617 |
| 1615 std::unique_ptr<ViewTargeter> targeter_; | 1618 std::unique_ptr<ViewTargeter> targeter_; |
| 1616 | 1619 |
| 1617 // Accessibility ------------------------------------------------------------- | 1620 // Accessibility ------------------------------------------------------------- |
| 1618 | 1621 |
| 1619 // Belongs to this view, but it's reference-counted on some platforms | 1622 // The accessibility element used to represent this View. |
| 1620 // so we can't use a scoped_ptr. It's dereferenced in the destructor. | 1623 std::unique_ptr<NativeViewAccessibility> native_view_accessibility_; |
| 1621 NativeViewAccessibility* native_view_accessibility_; | |
| 1622 | 1624 |
| 1623 // Observers ------------------------------------------------------------- | 1625 // Observers ------------------------------------------------------------- |
| 1624 | 1626 |
| 1625 base::ObserverList<ViewObserver> observers_; | 1627 base::ObserverList<ViewObserver> observers_; |
| 1626 | 1628 |
| 1627 DISALLOW_COPY_AND_ASSIGN(View); | 1629 DISALLOW_COPY_AND_ASSIGN(View); |
| 1628 }; | 1630 }; |
| 1629 | 1631 |
| 1630 } // namespace views | 1632 } // namespace views |
| 1631 | 1633 |
| 1632 #endif // UI_VIEWS_VIEW_H_ | 1634 #endif // UI_VIEWS_VIEW_H_ |
| OLD | NEW |