| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL
ER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL
ER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL
ER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL
ER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/message_loop_helpers.h" | 14 #include "base/task.h" |
| 15 #include "ui/views/controls/menu/menu_delegate.h" | 15 #include "ui/views/controls/menu/menu_delegate.h" |
| 16 | 16 |
| 17 class BrowserActionsContainer; | 17 class BrowserActionsContainer; |
| 18 class BrowserActionView; | 18 class BrowserActionView; |
| 19 | 19 |
| 20 namespace views { | 20 namespace views { |
| 21 class MenuRunner; | 21 class MenuRunner; |
| 22 class Widget; | 22 class Widget; |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // won't show all items, just the one starting at |start_index| and above. | 104 // won't show all items, just the one starting at |start_index| and above. |
| 105 const std::vector<BrowserActionView*>* views_; | 105 const std::vector<BrowserActionView*>* views_; |
| 106 | 106 |
| 107 // The index into the BrowserActionView vector, indicating where to start | 107 // The index into the BrowserActionView vector, indicating where to start |
| 108 // picking browser actions to draw. | 108 // picking browser actions to draw. |
| 109 int start_index_; | 109 int start_index_; |
| 110 | 110 |
| 111 // Whether this controller is being used for drop. | 111 // Whether this controller is being used for drop. |
| 112 bool for_drop_; | 112 bool for_drop_; |
| 113 | 113 |
| 114 friend class base::DeleteHelper<BrowserActionOverflowMenuController>; | 114 friend class DeleteTask<BrowserActionOverflowMenuController>; |
| 115 | 115 |
| 116 DISALLOW_COPY_AND_ASSIGN(BrowserActionOverflowMenuController); | 116 DISALLOW_COPY_AND_ASSIGN(BrowserActionOverflowMenuController); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTR
OLLER_H_ | 119 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTR
OLLER_H_ |
| OLD | NEW |