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_VIEWS_DELEGATE_H_ | 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ |
6 #define UI_VIEWS_VIEWS_DELEGATE_H_ | 6 #define UI_VIEWS_VIEWS_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // so that alternate feedback (speech / magnified text) can be provided. | 88 // so that alternate feedback (speech / magnified text) can be provided. |
89 virtual void NotifyMenuItemFocused(const base::string16& menu_name, | 89 virtual void NotifyMenuItemFocused(const base::string16& menu_name, |
90 const base::string16& menu_item_name, | 90 const base::string16& menu_item_name, |
91 int item_index, | 91 int item_index, |
92 int item_count, | 92 int item_count, |
93 bool has_submenu); | 93 bool has_submenu); |
94 | 94 |
95 #if defined(OS_WIN) | 95 #if defined(OS_WIN) |
96 // Retrieves the default window icon to use for windows if none is specified. | 96 // Retrieves the default window icon to use for windows if none is specified. |
97 virtual HICON GetDefaultWindowIcon() const; | 97 virtual HICON GetDefaultWindowIcon() const; |
| 98 // Retrieves the small window icon to use for windows if none is specified. |
| 99 virtual HICON GetSmallWindowIcon() const = 0; |
98 // Returns true if the window passed in is in the Windows 8 metro | 100 // Returns true if the window passed in is in the Windows 8 metro |
99 // environment. | 101 // environment. |
100 virtual bool IsWindowInMetro(gfx::NativeWindow window) const; | 102 virtual bool IsWindowInMetro(gfx::NativeWindow window) const; |
101 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) | 103 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) |
102 virtual gfx::ImageSkia* GetDefaultWindowIcon() const; | 104 virtual gfx::ImageSkia* GetDefaultWindowIcon() const; |
103 #endif | 105 #endif |
104 | 106 |
105 // Creates a default NonClientFrameView to be used for windows that don't | 107 // Creates a default NonClientFrameView to be used for windows that don't |
106 // specify their own. If this function returns NULL, the | 108 // specify their own. If this function returns NULL, the |
107 // views::CustomFrameView type will be used. | 109 // views::CustomFrameView type will be used. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 151 |
150 private: | 152 private: |
151 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; | 153 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; |
152 | 154 |
153 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 155 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
154 }; | 156 }; |
155 | 157 |
156 } // namespace views | 158 } // namespace views |
157 | 159 |
158 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 160 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
OLD | NEW |