OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // source code is governed by a BSD-style license that can be found in the | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef VIEWS_VIEWS_DELEGATE_H_ | 5 #ifndef VIEWS_VIEWS_DELEGATE_H_ |
6 #define VIEWS_VIEWS_DELEGATE_H_ | 6 #define VIEWS_VIEWS_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include <windows.h> | 11 #include <windows.h> |
12 #endif | 12 #endif |
13 | 13 |
14 class Clipboard; | 14 class Clipboard; |
| 15 |
15 namespace gfx { | 16 namespace gfx { |
16 class Rect; | 17 class Rect; |
17 } | 18 } |
18 | 19 |
19 namespace views { | 20 namespace views { |
20 | 21 |
21 // ViewsDelegate is an interface implemented by an object using the views | 22 // ViewsDelegate is an interface implemented by an object using the views |
22 // framework. It is used to obtain various high level application utilities | 23 // framework. It is used to obtain various high level application utilities |
23 // and perform some actions such as window placement saving. | 24 // and perform some actions such as window placement saving. |
24 // | 25 // |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // ensure we don't attempt to exit while a menu is showing. | 57 // ensure we don't attempt to exit while a menu is showing. |
57 virtual void AddRef() = 0; | 58 virtual void AddRef() = 0; |
58 virtual void ReleaseRef() = 0; | 59 virtual void ReleaseRef() = 0; |
59 | 60 |
60 // The active ViewsDelegate used by the views system. | 61 // The active ViewsDelegate used by the views system. |
61 static ViewsDelegate* views_delegate; | 62 static ViewsDelegate* views_delegate; |
62 }; | 63 }; |
63 | 64 |
64 } // namespace views | 65 } // namespace views |
65 | 66 |
66 #endif // #ifndef VIEWS_VIEWS_DELEGATE_H_ | 67 #endif // VIEWS_VIEWS_DELEGATE_H_ |
OLD | NEW |