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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 WindowOpenDisposition disposition, | 96 WindowOpenDisposition disposition, |
97 PageTransition::Type transition); | 97 PageTransition::Type transition); |
98 virtual void NavigationStateChanged(const TabContents* source, | 98 virtual void NavigationStateChanged(const TabContents* source, |
99 unsigned changed_flags); | 99 unsigned changed_flags); |
100 virtual void AddNewContents(TabContents* source, | 100 virtual void AddNewContents(TabContents* source, |
101 TabContents* new_contents, | 101 TabContents* new_contents, |
102 WindowOpenDisposition disposition, | 102 WindowOpenDisposition disposition, |
103 const gfx::Rect& initial_pos, | 103 const gfx::Rect& initial_pos, |
104 bool user_gesture); | 104 bool user_gesture); |
105 virtual void ActivateContents(TabContents* contents); | 105 virtual void ActivateContents(TabContents* contents); |
| 106 virtual void DeactivateContents(TabContents* contents); |
106 virtual void LoadingStateChanged(TabContents* source); | 107 virtual void LoadingStateChanged(TabContents* source); |
107 virtual void CloseContents(TabContents* source); | 108 virtual void CloseContents(TabContents* source); |
108 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 109 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
109 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); | 110 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); |
110 virtual void URLStarredChanged(TabContents* source, bool starred); | 111 virtual void URLStarredChanged(TabContents* source, bool starred); |
111 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 112 virtual void UpdateTargetURL(TabContents* source, const GURL& url); |
112 | 113 |
113 // Overridden from NotificationObserver: | 114 // Overridden from NotificationObserver: |
114 virtual void Observe(NotificationType type, | 115 virtual void Observe(NotificationType type, |
115 const NotificationSource& source, | 116 const NotificationSource& source, |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 // Did the mouse move enough that we started a drag? | 329 // Did the mouse move enough that we started a drag? |
329 bool started_drag_; | 330 bool started_drag_; |
330 | 331 |
331 // Is the drag active? | 332 // Is the drag active? |
332 bool active_; | 333 bool active_; |
333 | 334 |
334 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); | 335 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); |
335 }; | 336 }; |
336 | 337 |
337 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 338 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
OLD | NEW |