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> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "ui/base/dragdrop/os_exchange_data.h" | 19 #include "ui/base/dragdrop/os_exchange_data.h" |
20 #include "ui/gfx/compositor/layer_delegate.h" | 20 #include "ui/gfx/compositor/layer_delegate.h" |
21 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
22 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
23 #include "views/accelerator.h" | 23 #include "views/accelerator.h" |
24 #include "views/background.h" | 24 #include "views/background.h" |
25 #include "views/border.h" | 25 #include "views/border.h" |
26 | 26 |
| 27 #if defined(OS_WIN) |
| 28 #include "base/win/scoped_comptr.h" |
| 29 #endif |
| 30 |
27 using ui::OSExchangeData; | 31 using ui::OSExchangeData; |
28 | 32 |
29 namespace gfx { | 33 namespace gfx { |
30 class Canvas; | 34 class Canvas; |
31 class Insets; | 35 class Insets; |
32 class Path; | 36 class Path; |
33 } | 37 } |
34 | 38 |
35 namespace ui { | 39 namespace ui { |
36 struct AccessibleViewState; | 40 struct AccessibleViewState; |
37 class Compositor; | 41 class Compositor; |
38 class Layer; | 42 class Layer; |
39 class Texture; | 43 class Texture; |
40 class ThemeProvider; | 44 class ThemeProvider; |
41 class Transform; | 45 class Transform; |
42 enum TouchStatus; | 46 enum TouchStatus; |
43 } | 47 } |
44 | 48 |
45 #if defined(OS_WIN) | 49 #if defined(OS_WIN) |
46 class NativeViewAccessibilityWin; | 50 class __declspec(uuid("26f5641a-246d-457b-a96d-07f3fae6acf2")) |
| 51 NativeViewAccessibilityWin; |
47 #endif | 52 #endif |
48 | 53 |
49 namespace views { | 54 namespace views { |
50 | 55 |
51 class Background; | 56 class Background; |
52 class Border; | 57 class Border; |
53 class ContextMenuController; | 58 class ContextMenuController; |
54 class DragController; | 59 class DragController; |
55 class FocusManager; | 60 class FocusManager; |
56 class FocusTraversable; | 61 class FocusTraversable; |
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1437 ContextMenuController* context_menu_controller_; | 1442 ContextMenuController* context_menu_controller_; |
1438 | 1443 |
1439 // Drag and drop ------------------------------------------------------------- | 1444 // Drag and drop ------------------------------------------------------------- |
1440 | 1445 |
1441 DragController* drag_controller_; | 1446 DragController* drag_controller_; |
1442 | 1447 |
1443 // Accessibility ------------------------------------------------------------- | 1448 // Accessibility ------------------------------------------------------------- |
1444 | 1449 |
1445 // The Windows-specific accessibility implementation for this view. | 1450 // The Windows-specific accessibility implementation for this view. |
1446 #if defined(OS_WIN) | 1451 #if defined(OS_WIN) |
1447 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_; | 1452 base::win::ScopedComPtr<NativeViewAccessibilityWin> |
| 1453 native_view_accessibility_win_; |
1448 #endif | 1454 #endif |
1449 | 1455 |
1450 DISALLOW_COPY_AND_ASSIGN(View); | 1456 DISALLOW_COPY_AND_ASSIGN(View); |
1451 }; | 1457 }; |
1452 | 1458 |
1453 } // namespace views | 1459 } // namespace views |
1454 | 1460 |
1455 #endif // VIEWS_VIEW_H_ | 1461 #endif // VIEWS_VIEW_H_ |
OLD | NEW |