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_CONTROLS_MENU_SUBMENU_VIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
| 6 #define UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 explicit SubmenuView(MenuItemView* parent); | 45 explicit SubmenuView(MenuItemView* parent); |
| 46 ~SubmenuView() override; | 46 ~SubmenuView() override; |
| 47 | 47 |
| 48 // Returns the number of child views that are MenuItemViews. | 48 // Returns the number of child views that are MenuItemViews. |
| 49 // MenuItemViews are identified by ID. | 49 // MenuItemViews are identified by ID. |
| 50 int GetMenuItemCount(); | 50 int GetMenuItemCount(); |
| 51 | 51 |
| 52 // Returns the MenuItemView at the specified index. | 52 // Returns the MenuItemView at the specified index. |
| 53 MenuItemView* GetMenuItemAt(int index); | 53 MenuItemView* GetMenuItemAt(int index); |
| 54 | 54 |
| 55 ui::TextInputClient* GetTextInputClient(); | |
|
yukawa
2015/06/16 09:13:26
Can this be GetPrefixSelector() ?
Shu Chen
2015/06/17 02:27:52
Done.
| |
| 56 | |
| 55 // Positions and sizes the child views. This tiles the views vertically, | 57 // Positions and sizes the child views. This tiles the views vertically, |
| 56 // giving each child the available width. | 58 // giving each child the available width. |
| 57 void Layout() override; | 59 void Layout() override; |
| 58 gfx::Size GetPreferredSize() const override; | 60 gfx::Size GetPreferredSize() const override; |
| 59 | 61 |
| 60 // Override from View. | 62 // Override from View. |
| 61 void GetAccessibleState(ui::AXViewState* state) override; | 63 void GetAccessibleState(ui::AXViewState* state) override; |
| 62 ui::TextInputClient* GetTextInputClient() override; | |
| 63 | 64 |
| 64 // Painting. | 65 // Painting. |
| 65 void PaintChildren(const ui::PaintContext& context) override; | 66 void PaintChildren(const ui::PaintContext& context) override; |
| 66 | 67 |
| 67 // Drag and drop methods. These are forwarded to the MenuController. | 68 // Drag and drop methods. These are forwarded to the MenuController. |
| 68 bool GetDropFormats( | 69 bool GetDropFormats( |
| 69 int* formats, | 70 int* formats, |
| 70 std::set<OSExchangeData::CustomFormat>* custom_formats) override; | 71 std::set<OSExchangeData::CustomFormat>* custom_formats) override; |
| 71 bool AreDropTypesRequired() override; | 72 bool AreDropTypesRequired() override; |
| 72 bool CanDrop(const OSExchangeData& data) override; | 73 bool CanDrop(const OSExchangeData& data) override; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 212 float roundoff_error_; | 213 float roundoff_error_; |
| 213 | 214 |
| 214 PrefixSelector prefix_selector_; | 215 PrefixSelector prefix_selector_; |
| 215 | 216 |
| 216 DISALLOW_COPY_AND_ASSIGN(SubmenuView); | 217 DISALLOW_COPY_AND_ASSIGN(SubmenuView); |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 } // namespace views | 220 } // namespace views |
| 220 | 221 |
| 221 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 222 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
| OLD | NEW |