| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 6 #define CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 WindowOpenDisposition disposition, | 97 WindowOpenDisposition disposition, |
| 98 PageTransition::Type transition); | 98 PageTransition::Type transition); |
| 99 virtual void NavigationStateChanged(const TabContents* source, | 99 virtual void NavigationStateChanged(const TabContents* source, |
| 100 unsigned changed_flags); | 100 unsigned changed_flags); |
| 101 virtual void AddNewContents(TabContents* source, | 101 virtual void AddNewContents(TabContents* source, |
| 102 TabContents* new_contents, | 102 TabContents* new_contents, |
| 103 WindowOpenDisposition disposition, | 103 WindowOpenDisposition disposition, |
| 104 const gfx::Rect& initial_pos, | 104 const gfx::Rect& initial_pos, |
| 105 bool user_gesture); | 105 bool user_gesture); |
| 106 virtual void ActivateContents(TabContents* contents); | 106 virtual void ActivateContents(TabContents* contents); |
| 107 virtual void DeactivateContents(TabContents* contents); | |
| 108 virtual void LoadingStateChanged(TabContents* source); | 107 virtual void LoadingStateChanged(TabContents* source); |
| 109 virtual void CloseContents(TabContents* source); | 108 virtual void CloseContents(TabContents* source); |
| 110 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 109 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
| 111 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); | 110 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); |
| 112 virtual void URLStarredChanged(TabContents* source, bool starred); | 111 virtual void URLStarredChanged(TabContents* source, bool starred); |
| 113 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 112 virtual void UpdateTargetURL(TabContents* source, const GURL& url); |
| 114 | 113 |
| 115 // Overridden from NotificationObserver: | 114 // Overridden from NotificationObserver: |
| 116 virtual void Observe(NotificationType type, | 115 virtual void Observe(NotificationType type, |
| 117 const NotificationSource& source, | 116 const NotificationSource& source, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 // Did the mouse move enough that we started a drag? | 329 // Did the mouse move enough that we started a drag? |
| 331 bool started_drag_; | 330 bool started_drag_; |
| 332 | 331 |
| 333 // Is the drag active? | 332 // Is the drag active? |
| 334 bool active_; | 333 bool active_; |
| 335 | 334 |
| 336 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); | 335 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); |
| 337 }; | 336 }; |
| 338 | 337 |
| 339 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 338 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| OLD | NEW |