| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_BUTTON_DROPDOWN_H__ | 5 #ifndef CHROME_VIEWS_BUTTON_DROPDOWN_H__ |
| 6 #define CHROME_VIEWS_BUTTON_DROPDOWN_H__ | 6 #define CHROME_VIEWS_BUTTON_DROPDOWN_H__ |
| 7 | 7 |
| 8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 #include "chrome/views/button.h" | 9 #include "chrome/views/button.h" |
| 10 #include "chrome/views/menu.h" | 10 #include "chrome/views/menu.h" |
| 11 | 11 |
| 12 class Timer; | |
| 13 | |
| 14 namespace views { | 12 namespace views { |
| 15 | 13 |
| 16 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
| 17 // | 15 // |
| 18 // ButtonDropDown | 16 // ButtonDropDown |
| 19 // | 17 // |
| 20 // A button class that when pressed (and held) or pressed (and drag down) will | 18 // A button class that when pressed (and held) or pressed (and drag down) will |
| 21 // display a menu | 19 // display a menu |
| 22 // | 20 // |
| 23 //////////////////////////////////////////////////////////////////////////////// | 21 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 57 |
| 60 // Specifies who to delegate populating the menu | 58 // Specifies who to delegate populating the menu |
| 61 Menu::Delegate* menu_delegate_; | 59 Menu::Delegate* menu_delegate_; |
| 62 | 60 |
| 63 // Y position of mouse when left mouse button is pressed | 61 // Y position of mouse when left mouse button is pressed |
| 64 int y_position_on_lbuttondown_; | 62 int y_position_on_lbuttondown_; |
| 65 | 63 |
| 66 // A factory for tasks that show the dropdown context menu for the button. | 64 // A factory for tasks that show the dropdown context menu for the button. |
| 67 ScopedRunnableMethodFactory<ButtonDropDown> show_menu_factory_; | 65 ScopedRunnableMethodFactory<ButtonDropDown> show_menu_factory_; |
| 68 | 66 |
| 69 DISALLOW_EVIL_CONSTRUCTORS(ButtonDropDown); | 67 DISALLOW_COPY_AND_ASSIGN(ButtonDropDown); |
| 70 }; | 68 }; |
| 71 | 69 |
| 72 } // namespace views | 70 } // namespace views |
| 73 | 71 |
| 74 #endif // CHROME_VIEWS_BUTTON_DROPDOWN_H__ | 72 #endif // CHROME_VIEWS_BUTTON_DROPDOWN_H__ |
| 75 | |
| OLD | NEW |