Chromium Code Reviews| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 virtual void NotifyAccessibilityEvent(View* view, ui::AXEvent event_type); | 95 virtual void NotifyAccessibilityEvent(View* view, ui::AXEvent event_type); |
| 96 | 96 |
| 97 // For accessibility, notify the delegate that a menu item was focused | 97 // For accessibility, notify the delegate that a menu item was focused |
| 98 // so that alternate feedback (speech / magnified text) can be provided. | 98 // so that alternate feedback (speech / magnified text) can be provided. |
| 99 virtual void NotifyMenuItemFocused(const base::string16& menu_name, | 99 virtual void NotifyMenuItemFocused(const base::string16& menu_name, |
| 100 const base::string16& menu_item_name, | 100 const base::string16& menu_item_name, |
| 101 int item_index, | 101 int item_index, |
| 102 int item_count, | 102 int item_count, |
| 103 bool has_submenu); | 103 bool has_submenu); |
| 104 | 104 |
| 105 // Will perform accelerator handling when for accelerators pressed while a | |
|
sky
2015/09/09 00:01:59
I think you mean:
Invoked when an accelerator is p
afakhry
2015/09/09 02:31:34
Done for the comment.
The implementation in Chrome
| |
| 106 // menu is open. | |
| 107 virtual void HandleKeyEventOnMenu(ui::KeyEvent* event); | |
| 108 | |
| 105 #if defined(OS_WIN) | 109 #if defined(OS_WIN) |
| 106 // Retrieves the default window icon to use for windows if none is specified. | 110 // Retrieves the default window icon to use for windows if none is specified. |
| 107 virtual HICON GetDefaultWindowIcon() const; | 111 virtual HICON GetDefaultWindowIcon() const; |
| 108 // Retrieves the small window icon to use for windows if none is specified. | 112 // Retrieves the small window icon to use for windows if none is specified. |
| 109 virtual HICON GetSmallWindowIcon() const = 0; | 113 virtual HICON GetSmallWindowIcon() const = 0; |
| 110 // Returns true if the window passed in is in the Windows 8 metro | 114 // Returns true if the window passed in is in the Windows 8 metro |
| 111 // environment. | 115 // environment. |
| 112 virtual bool IsWindowInMetro(gfx::NativeWindow window) const; | 116 virtual bool IsWindowInMetro(gfx::NativeWindow window) const; |
| 113 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) | 117 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 114 virtual gfx::ImageSkia* GetDefaultWindowIcon() const; | 118 virtual gfx::ImageSkia* GetDefaultWindowIcon() const; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 #if defined(USE_AURA) | 175 #if defined(USE_AURA) |
| 172 scoped_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; | 176 scoped_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; |
| 173 #endif | 177 #endif |
| 174 | 178 |
| 175 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 179 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
| 176 }; | 180 }; |
| 177 | 181 |
| 178 } // namespace views | 182 } // namespace views |
| 179 | 183 |
| 180 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 184 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |