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); |
107 virtual void LoadingStateChanged(TabContents* source); | 108 virtual void LoadingStateChanged(TabContents* source); |
108 virtual void CloseContents(TabContents* source); | 109 virtual void CloseContents(TabContents* source); |
109 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 110 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
110 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); | 111 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); |
111 virtual void URLStarredChanged(TabContents* source, bool starred); | 112 virtual void URLStarredChanged(TabContents* source, bool starred); |
112 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 113 virtual void UpdateTargetURL(TabContents* source, const GURL& url); |
113 | 114 |
114 // Overridden from NotificationObserver: | 115 // Overridden from NotificationObserver: |
115 virtual void Observe(NotificationType type, | 116 virtual void Observe(NotificationType type, |
116 const NotificationSource& source, | 117 const NotificationSource& source, |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 // Did the mouse move enough that we started a drag? | 330 // Did the mouse move enough that we started a drag? |
330 bool started_drag_; | 331 bool started_drag_; |
331 | 332 |
332 // Is the drag active? | 333 // Is the drag active? |
333 bool active_; | 334 bool active_; |
334 | 335 |
335 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); | 336 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); |
336 }; | 337 }; |
337 | 338 |
338 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 339 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
OLD | NEW |