| OLD | NEW |
| 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 virtual void Observe(int type, | 236 virtual void Observe(int type, |
| 237 const content::NotificationSource& source, | 237 const content::NotificationSource& source, |
| 238 const content::NotificationDetails& details) OVERRIDE; | 238 const content::NotificationDetails& details) OVERRIDE; |
| 239 | 239 |
| 240 // Overridden from MessageLoop::Observer: | 240 // Overridden from MessageLoop::Observer: |
| 241 virtual base::EventStatus WillProcessEvent( | 241 virtual base::EventStatus WillProcessEvent( |
| 242 const base::NativeEvent& event) OVERRIDE; | 242 const base::NativeEvent& event) OVERRIDE; |
| 243 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE; | 243 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE; |
| 244 | 244 |
| 245 // Overriden from views::WidgetObserver: | 245 // Overriden from views::WidgetObserver: |
| 246 virtual void OnWidgetMoved(views::Widget* widget) OVERRIDE; | 246 virtual void OnWidgetBoundsChanged(views::Widget* widget, |
| 247 const gfx::Rect& new_bounds) OVERRIDE; |
| 247 | 248 |
| 248 // Overriden from TabStripModelObserver: | 249 // Overriden from TabStripModelObserver: |
| 249 virtual void TabStripEmpty() OVERRIDE; | 250 virtual void TabStripEmpty() OVERRIDE; |
| 250 | 251 |
| 251 // Initialize the offset used to calculate the position to create windows | 252 // Initialize the offset used to calculate the position to create windows |
| 252 // in |GetWindowCreatePoint|. This should only be invoked from |Init|. | 253 // in |GetWindowCreatePoint|. This should only be invoked from |Init|. |
| 253 void InitWindowCreatePoint(); | 254 void InitWindowCreatePoint(); |
| 254 | 255 |
| 255 // Returns the point where a detached window should be created given the | 256 // Returns the point where a detached window should be created given the |
| 256 // current mouse position |origin|. | 257 // current mouse position |origin|. |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 // If non-null set to true from destructor. | 602 // If non-null set to true from destructor. |
| 602 bool* destroyed_; | 603 bool* destroyed_; |
| 603 | 604 |
| 604 // See description above getter. | 605 // See description above getter. |
| 605 bool is_mutating_; | 606 bool is_mutating_; |
| 606 | 607 |
| 607 DISALLOW_COPY_AND_ASSIGN(TabDragController); | 608 DISALLOW_COPY_AND_ASSIGN(TabDragController); |
| 608 }; | 609 }; |
| 609 | 610 |
| 610 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ | 611 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ |
| OLD | NEW |