Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: chrome/browser/ui/views/browser_actions_container.h

Issue 8301022: ui/views: Migrate usages of ScopedRunnableMethodFactory to base::WeakPtrFactory/base::Bind pair. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ('k') | chrome/browser/ui/views/browser_actions_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698