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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // so that alternate feedback (speech / magnified text) can be provided. | 82 // so that alternate feedback (speech / magnified text) can be provided. |
83 virtual void NotifyMenuItemFocused(const string16& menu_name, | 83 virtual void NotifyMenuItemFocused(const string16& menu_name, |
84 const string16& menu_item_name, | 84 const string16& menu_item_name, |
85 int item_index, | 85 int item_index, |
86 int item_count, | 86 int item_count, |
87 bool has_submenu) = 0; | 87 bool has_submenu) = 0; |
88 | 88 |
89 #if defined(OS_WIN) | 89 #if defined(OS_WIN) |
90 // Retrieves the default window icon to use for windows if none is specified. | 90 // Retrieves the default window icon to use for windows if none is specified. |
91 virtual HICON GetDefaultWindowIcon() const = 0; | 91 virtual HICON GetDefaultWindowIcon() const = 0; |
| 92 // Returns true if the window passed in is in the Windows 8 metro |
| 93 // environment. |
| 94 virtual bool IsWindowInMetro(gfx::NativeWindow window) const = 0; |
92 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) | 95 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) |
93 virtual gfx::ImageSkia* GetDefaultWindowIcon() const = 0; | 96 virtual gfx::ImageSkia* GetDefaultWindowIcon() const = 0; |
94 #endif | 97 #endif |
95 | 98 |
96 // Creates a default NonClientFrameView to be used for windows that don't | 99 // Creates a default NonClientFrameView to be used for windows that don't |
97 // specify their own. If this function returns NULL, the | 100 // specify their own. If this function returns NULL, the |
98 // views::CustomFrameView type will be used. | 101 // views::CustomFrameView type will be used. |
99 virtual NonClientFrameView* CreateDefaultNonClientFrameView( | 102 virtual NonClientFrameView* CreateDefaultNonClientFrameView( |
100 Widget* widget) = 0; | 103 Widget* widget) = 0; |
101 | 104 |
(...skipping 19 matching lines...) Expand all Loading... |
121 // Returns the default obscured text reveal duration. | 124 // Returns the default obscured text reveal duration. |
122 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() = 0; | 125 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() = 0; |
123 | 126 |
124 private: | 127 private: |
125 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; | 128 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; |
126 }; | 129 }; |
127 | 130 |
128 } // namespace views | 131 } // namespace views |
129 | 132 |
130 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 133 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
OLD | NEW |