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_VIEWS_DELEGATE_H_ | 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ |
6 #define VIEWS_VIEWS_DELEGATE_H_ | 6 #define UI_VIEWS_VIEWS_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
12 #include <windows.h> | 12 #include <windows.h> |
13 #endif | 13 #endif |
14 | 14 |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "ui/base/accessibility/accessibility_types.h" | 16 #include "ui/base/accessibility/accessibility_types.h" |
17 #include "ui/base/ui_base_types.h" | 17 #include "ui/base/ui_base_types.h" |
18 #include "views/views_export.h" | 18 #include "ui/views/views_export.h" |
19 | 19 |
20 namespace gfx { | 20 namespace gfx { |
21 class Rect; | 21 class Rect; |
22 } | 22 } |
23 | 23 |
24 namespace ui { | 24 namespace ui { |
25 class Clipboard; | 25 class Clipboard; |
26 } | 26 } |
27 | 27 |
28 namespace views { | 28 namespace views { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // ensure we don't attempt to exit while a menu is showing. | 81 // ensure we don't attempt to exit while a menu is showing. |
82 virtual void AddRef() = 0; | 82 virtual void AddRef() = 0; |
83 virtual void ReleaseRef() = 0; | 83 virtual void ReleaseRef() = 0; |
84 | 84 |
85 // Converts views::Event::flags to a WindowOpenDisposition. | 85 // Converts views::Event::flags to a WindowOpenDisposition. |
86 virtual int GetDispositionForEvent(int event_flags) = 0; | 86 virtual int GetDispositionForEvent(int event_flags) = 0; |
87 }; | 87 }; |
88 | 88 |
89 } // namespace views | 89 } // namespace views |
90 | 90 |
91 #endif // VIEWS_VIEWS_DELEGATE_H_ | 91 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
OLD | NEW |