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 |
109 // Overridden from NotificationObserver: | 114 // Overridden from NotificationObserver: |
110 virtual void Observe(NotificationType type, | 115 virtual void Observe(NotificationType type, |
111 const NotificationSource& source, | 116 const NotificationSource& source, |
112 const NotificationDetails& details); | 117 const NotificationDetails& details); |
113 | 118 |
114 // Overridden from MessageLoop::Observer: | 119 // Overridden from MessageLoop::Observer: |
115 virtual void WillProcessMessage(const MSG& msg); | 120 virtual void WillProcessMessage(const MSG& msg); |
116 virtual void DidProcessMessage(const MSG& msg); | 121 virtual void DidProcessMessage(const MSG& msg); |
117 | 122 |
118 // Initialize the offset used to calculate the position to create windows | 123 // Initialize the offset used to calculate the position to create windows |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 302 |
298 // Timer used to bring the window under the cursor to front. If the user | 303 // Timer used to bring the window under the cursor to front. If the user |
299 // stops moving the mouse for a brief time over a browser window, it is | 304 // stops moving the mouse for a brief time over a browser window, it is |
300 // brought to front. | 305 // brought to front. |
301 base::OneShotTimer<DraggedTabController> bring_to_front_timer_; | 306 base::OneShotTimer<DraggedTabController> bring_to_front_timer_; |
302 | 307 |
303 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); | 308 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); |
304 }; | 309 }; |
305 | 310 |
306 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 311 #endif // CHROME_BROWSER_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
OLD | NEW |