| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 6 #define CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 // Overridden from NotificationObserver: | 172 // Overridden from NotificationObserver: |
| 173 virtual void Observe(NotificationType type, | 173 virtual void Observe(NotificationType type, |
| 174 const NotificationSource& source, | 174 const NotificationSource& source, |
| 175 const NotificationDetails& details); | 175 const NotificationDetails& details); |
| 176 | 176 |
| 177 // BrowserBubble::Delegate methods. | 177 // BrowserBubble::Delegate methods. |
| 178 virtual void BubbleBrowserWindowMoved(BrowserBubble* bubble); | 178 virtual void BubbleBrowserWindowMoved(BrowserBubble* bubble); |
| 179 virtual void BubbleBrowserWindowClosing(BrowserBubble* bubble); | 179 virtual void BubbleBrowserWindowClosing(BrowserBubble* bubble); |
| 180 virtual void BubbleGotFocus(BrowserBubble* bubble); | 180 virtual void BubbleGotFocus(BrowserBubble* bubble); |
| 181 virtual void BubbleLostFocus(BrowserBubble* bubble); | 181 virtual void BubbleLostFocus(BrowserBubble* bubble, |
| 182 gfx::NativeView focused_view); |
| 182 | 183 |
| 183 // Get clipped width required to precisely fit the browser action icons | 184 // Get clipped width required to precisely fit the browser action icons |
| 184 // given a tentative available width. The minimum size it returns is not | 185 // given a tentative available width. The minimum size it returns is not |
| 185 // zero, but depends on the minimum number of icons that have to be there | 186 // zero, but depends on the minimum number of icons that have to be there |
| 186 // by default irrespective of the available space to draw them. | 187 // by default irrespective of the available space to draw them. |
| 187 int GetClippedPreferredWidth(int available_width); | 188 int GetClippedPreferredWidth(int available_width); |
| 188 | 189 |
| 189 // Hide the current popup. | 190 // Hide the current popup. |
| 190 void HidePopup(); | 191 void HidePopup(); |
| 191 | 192 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 221 // The button that triggered the current popup (just a reference to a button | 222 // The button that triggered the current popup (just a reference to a button |
| 222 // from browser_action_views_). | 223 // from browser_action_views_). |
| 223 BrowserActionButton* popup_button_; | 224 BrowserActionButton* popup_button_; |
| 224 | 225 |
| 225 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_; | 226 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_; |
| 226 | 227 |
| 227 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 228 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
| 228 }; | 229 }; |
| 229 | 230 |
| 230 #endif // CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 231 #endif // CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| OLD | NEW |