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 OnWidgetBoundsChanged(views::Widget* widget, | 246 virtual void OnWidgetMoved(views::Widget* widget) OVERRIDE; |
247 const gfx::Rect& new_bounds) OVERRIDE; | |
248 | 247 |
249 // Overriden from TabStripModelObserver: | 248 // Overriden from TabStripModelObserver: |
250 virtual void TabStripEmpty() OVERRIDE; | 249 virtual void TabStripEmpty() OVERRIDE; |
251 | 250 |
252 // Initialize the offset used to calculate the position to create windows | 251 // Initialize the offset used to calculate the position to create windows |
253 // in |GetWindowCreatePoint|. This should only be invoked from |Init|. | 252 // in |GetWindowCreatePoint|. This should only be invoked from |Init|. |
254 void InitWindowCreatePoint(); | 253 void InitWindowCreatePoint(); |
255 | 254 |
256 // Returns the point where a detached window should be created given the | 255 // Returns the point where a detached window should be created given the |
257 // current mouse position |origin|. | 256 // current mouse position |origin|. |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 // If non-null set to true from destructor. | 601 // If non-null set to true from destructor. |
603 bool* destroyed_; | 602 bool* destroyed_; |
604 | 603 |
605 // See description above getter. | 604 // See description above getter. |
606 bool is_mutating_; | 605 bool is_mutating_; |
607 | 606 |
608 DISALLOW_COPY_AND_ASSIGN(TabDragController); | 607 DISALLOW_COPY_AND_ASSIGN(TabDragController); |
609 }; | 608 }; |
610 | 609 |
611 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ | 610 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ |
OLD | NEW |