| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include "base/gfx/rect.h" | 8 #include "base/gfx/rect.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 bool user_gesture); | 99 bool user_gesture); |
| 100 virtual void ActivateContents(TabContents* contents); | 100 virtual void ActivateContents(TabContents* contents); |
| 101 virtual void LoadingStateChanged(TabContents* source); | 101 virtual void LoadingStateChanged(TabContents* source); |
| 102 virtual void CloseContents(TabContents* source); | 102 virtual void CloseContents(TabContents* source); |
| 103 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 103 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
| 104 virtual bool IsPopup(TabContents* source); | 104 virtual bool IsPopup(TabContents* source); |
| 105 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); | 105 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); |
| 106 virtual void URLStarredChanged(TabContents* source, bool starred); | 106 virtual void URLStarredChanged(TabContents* source, bool starred); |
| 107 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 107 virtual void UpdateTargetURL(TabContents* source, const GURL& url); |
| 108 | 108 |
| 109 // Creates an ExtensionFunctionDispatcher that has no browser | |
| 110 virtual ExtensionFunctionDispatcher *CreateExtensionFunctionDispatcher( | |
| 111 RenderViewHost* render_view_host, | |
| 112 const std::string& extension_id); | |
| 113 | |
| 114 // Overridden from NotificationObserver: | 109 // Overridden from NotificationObserver: |
| 115 virtual void Observe(NotificationType type, | 110 virtual void Observe(NotificationType type, |
| 116 const NotificationSource& source, | 111 const NotificationSource& source, |
| 117 const NotificationDetails& details); | 112 const NotificationDetails& details); |
| 118 | 113 |
| 119 // Overridden from MessageLoop::Observer: | 114 // Overridden from MessageLoop::Observer: |
| 120 #if defined(OS_WIN) | 115 #if defined(OS_WIN) |
| 121 virtual void WillProcessMessage(const MSG& msg); | 116 virtual void WillProcessMessage(const MSG& msg); |
| 122 virtual void DidProcessMessage(const MSG& msg); | 117 virtual void DidProcessMessage(const MSG& msg); |
| 123 #else | 118 #else |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 303 |
| 309 // Timer used to bring the window under the cursor to front. If the user | 304 // Timer used to bring the window under the cursor to front. If the user |
| 310 // stops moving the mouse for a brief time over a browser window, it is | 305 // stops moving the mouse for a brief time over a browser window, it is |
| 311 // brought to front. | 306 // brought to front. |
| 312 base::OneShotTimer<DraggedTabController> bring_to_front_timer_; | 307 base::OneShotTimer<DraggedTabController> bring_to_front_timer_; |
| 313 | 308 |
| 314 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); | 309 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); |
| 315 }; | 310 }; |
| 316 | 311 |
| 317 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 312 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| OLD | NEW |