| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // Positions and sizes the child views. This tiles the views vertically, | 55 // Positions and sizes the child views. This tiles the views vertically, |
| 56 // giving each child the available width. | 56 // giving each child the available width. |
| 57 void Layout() override; | 57 void Layout() override; |
| 58 gfx::Size GetPreferredSize() const override; | 58 gfx::Size GetPreferredSize() const override; |
| 59 | 59 |
| 60 // Override from View. | 60 // Override from View. |
| 61 void GetAccessibleState(ui::AXViewState* state) override; | 61 void GetAccessibleState(ui::AXViewState* state) override; |
| 62 ui::TextInputClient* GetTextInputClient() override; | 62 ui::TextInputClient* GetTextInputClient() override; |
| 63 | 63 |
| 64 // Painting. | 64 // Painting. |
| 65 void PaintChildren(const PaintContext& context) override; | 65 void PaintChildren(const ui::PaintContext& context) override; |
| 66 | 66 |
| 67 // Drag and drop methods. These are forwarded to the MenuController. | 67 // Drag and drop methods. These are forwarded to the MenuController. |
| 68 bool GetDropFormats( | 68 bool GetDropFormats( |
| 69 int* formats, | 69 int* formats, |
| 70 std::set<OSExchangeData::CustomFormat>* custom_formats) override; | 70 std::set<OSExchangeData::CustomFormat>* custom_formats) override; |
| 71 bool AreDropTypesRequired() override; | 71 bool AreDropTypesRequired() override; |
| 72 bool CanDrop(const OSExchangeData& data) override; | 72 bool CanDrop(const OSExchangeData& data) override; |
| 73 void OnDragEntered(const ui::DropTargetEvent& event) override; | 73 void OnDragEntered(const ui::DropTargetEvent& event) override; |
| 74 int OnDragUpdated(const ui::DropTargetEvent& event) override; | 74 int OnDragUpdated(const ui::DropTargetEvent& event) override; |
| 75 void OnDragExited() override; | 75 void OnDragExited() override; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 float roundoff_error_; | 218 float roundoff_error_; |
| 219 | 219 |
| 220 PrefixSelector prefix_selector_; | 220 PrefixSelector prefix_selector_; |
| 221 | 221 |
| 222 DISALLOW_COPY_AND_ASSIGN(SubmenuView); | 222 DISALLOW_COPY_AND_ASSIGN(SubmenuView); |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 } // namespace views | 225 } // namespace views |
| 226 | 226 |
| 227 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ | 227 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ |
| OLD | NEW |