OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 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) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 #if defined(OS_WIN) | 73 #if defined(OS_WIN) |
74 // Retrieves the default window icon to use for windows if none is specified. | 74 // Retrieves the default window icon to use for windows if none is specified. |
75 virtual HICON GetDefaultWindowIcon() const = 0; | 75 virtual HICON GetDefaultWindowIcon() const = 0; |
76 #endif | 76 #endif |
77 | 77 |
78 // AddRef/ReleaseRef are invoked while a menu is visible. They are used to | 78 // AddRef/ReleaseRef are invoked while a menu is visible. They are used to |
79 // ensure we don't attempt to exit while a menu is showing. | 79 // ensure we don't attempt to exit while a menu is showing. |
80 virtual void AddRef() = 0; | 80 virtual void AddRef() = 0; |
81 virtual void ReleaseRef() = 0; | 81 virtual void ReleaseRef() = 0; |
82 | 82 |
83 // Convert event to window disposition. | |
sky
2011/05/25 15:41:12
How about: Converts views::Event::flags to a Windo
rhashimoto
2011/05/25 16:24:37
Done.
| |
84 virtual int GetDispositionForEvent(int event_flags) = 0; | |
85 | |
83 // The active ViewsDelegate used by the views system. | 86 // The active ViewsDelegate used by the views system. |
84 static ViewsDelegate* views_delegate; | 87 static ViewsDelegate* views_delegate; |
85 }; | 88 }; |
86 | 89 |
87 } // namespace views | 90 } // namespace views |
88 | 91 |
89 #endif // VIEWS_VIEWS_DELEGATE_H_ | 92 #endif // VIEWS_VIEWS_DELEGATE_H_ |
OLD | NEW |