| 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_BROWSER_ACTIONS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 14 #include "base/task.h" | 15 #include "base/memory/weak_ptr.h" |
| 15 #include "chrome/browser/extensions/extension_context_menu_model.h" | 16 #include "chrome/browser/extensions/extension_context_menu_model.h" |
| 16 #include "chrome/browser/extensions/extension_toolbar_model.h" | 17 #include "chrome/browser/extensions/extension_toolbar_model.h" |
| 17 #include "chrome/browser/extensions/image_loading_tracker.h" | 18 #include "chrome/browser/extensions/image_loading_tracker.h" |
| 18 #include "chrome/browser/ui/views/browser_bubble.h" | 19 #include "chrome/browser/ui/views/browser_bubble.h" |
| 19 #include "chrome/browser/ui/views/extensions/browser_action_overflow_menu_contro
ller.h" | 20 #include "chrome/browser/ui/views/extensions/browser_action_overflow_menu_contro
ller.h" |
| 20 #include "chrome/browser/ui/views/extensions/extension_popup.h" | 21 #include "chrome/browser/ui/views/extensions/extension_popup.h" |
| 21 #include "content/common/notification_observer.h" | 22 #include "content/common/notification_observer.h" |
| 22 #include "content/common/notification_registrar.h" | 23 #include "content/common/notification_registrar.h" |
| 23 #include "ui/base/animation/animation_delegate.h" | 24 #include "ui/base/animation/animation_delegate.h" |
| 24 #include "ui/base/animation/tween.h" | 25 #include "ui/base/animation/tween.h" |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 // we should draw. | 507 // we should draw. |
| 507 int resize_amount_; | 508 int resize_amount_; |
| 508 | 509 |
| 509 // Keeps track of the absolute pixel width the container should have when we | 510 // Keeps track of the absolute pixel width the container should have when we |
| 510 // are done animating. | 511 // are done animating. |
| 511 int animation_target_size_; | 512 int animation_target_size_; |
| 512 | 513 |
| 513 // The x position for where to draw the drop indicator. -1 if no indicator. | 514 // The x position for where to draw the drop indicator. -1 if no indicator. |
| 514 int drop_indicator_position_; | 515 int drop_indicator_position_; |
| 515 | 516 |
| 516 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_; | 517 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; |
| 517 | 518 |
| 518 // Handles delayed showing of the overflow menu when hovering. | 519 // Handles delayed showing of the overflow menu when hovering. |
| 519 ScopedRunnableMethodFactory<BrowserActionsContainer> show_menu_task_factory_; | 520 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; |
| 520 | 521 |
| 521 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 522 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
| 522 }; | 523 }; |
| 523 | 524 |
| 524 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 525 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| OLD | NEW |