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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_gtk.cc

Issue 9071001: base::Bind: Remove ScopedRunnableMethodFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 8 years, 11 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) 2012 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 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/ui/browser_list.h" 8 #include "chrome/browser/ui/browser_list.h"
9 #include "chrome/browser/ui/panels/panel.h" 9 #include "chrome/browser/ui/panels/panel.h"
10 #include "chrome/browser/ui/panels/panel_bounds_animation.h" 10 #include "chrome/browser/ui/panels/panel_bounds_animation.h"
11 #include "chrome/browser/ui/panels/panel_manager.h" 11 #include "chrome/browser/ui/panels/panel_manager.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return panel_browser_window_gtk; 46 return panel_browser_window_gtk;
47 } 47 }
48 48
49 PanelBrowserWindowGtk::PanelBrowserWindowGtk(Browser* browser, 49 PanelBrowserWindowGtk::PanelBrowserWindowGtk(Browser* browser,
50 Panel* panel, 50 Panel* panel,
51 const gfx::Rect& bounds) 51 const gfx::Rect& bounds)
52 : BrowserWindowGtk(browser), 52 : BrowserWindowGtk(browser),
53 system_drag_disabled_for_testing_(false), 53 system_drag_disabled_for_testing_(false),
54 last_mouse_down_(NULL), 54 last_mouse_down_(NULL),
55 drag_widget_(NULL), 55 drag_widget_(NULL),
56 destroy_drag_widget_factory_(this),
57 drag_end_factory_(this), 56 drag_end_factory_(this),
58 panel_(panel), 57 panel_(panel),
59 bounds_(bounds), 58 bounds_(bounds),
60 window_size_known_(false), 59 window_size_known_(false),
61 is_drawing_attention_(false) { 60 is_drawing_attention_(false) {
62 } 61 }
63 62
64 PanelBrowserWindowGtk::~PanelBrowserWindowGtk() { 63 PanelBrowserWindowGtk::~PanelBrowserWindowGtk() {
65 if (drag_widget_) { 64 if (drag_widget_) {
66 // Terminate the grab if we have it. We could do this using any widget, 65 // Terminate the grab if we have it. We could do this using any widget,
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 } 787 }
789 } 788 }
790 789
791 bool NativePanelTestingGtk::IsWindowSizeKnown() const { 790 bool NativePanelTestingGtk::IsWindowSizeKnown() const {
792 return panel_browser_window_gtk_->window_size_known_; 791 return panel_browser_window_gtk_->window_size_known_;
793 } 792 }
794 793
795 bool NativePanelTestingGtk::IsAnimatingBounds() const { 794 bool NativePanelTestingGtk::IsAnimatingBounds() const {
796 return panel_browser_window_gtk_->IsAnimatingBounds(); 795 return panel_browser_window_gtk_->IsAnimatingBounds();
797 } 796 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.h ('k') | chrome/test/base/view_event_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698