| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 WindowOpenDisposition disposition, | 82 WindowOpenDisposition disposition, |
| 83 const gfx::Rect& initial_pos, | 83 const gfx::Rect& initial_pos, |
| 84 bool user_gesture); | 84 bool user_gesture); |
| 85 virtual void ActivateContents(TabContents* contents); | 85 virtual void ActivateContents(TabContents* contents); |
| 86 virtual void DeactivateContents(TabContents* contents); | 86 virtual void DeactivateContents(TabContents* contents); |
| 87 virtual void LoadingStateChanged(TabContents* source); | 87 virtual void LoadingStateChanged(TabContents* source); |
| 88 virtual void CloseContents(TabContents* source); | 88 virtual void CloseContents(TabContents* source); |
| 89 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 89 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
| 90 virtual bool IsPopup(const TabContents* source) const; | 90 virtual bool IsPopup(const TabContents* source) const; |
| 91 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 91 virtual void UpdateTargetURL(TabContents* source, const GURL& url); |
| 92 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator( |
| 93 ) OVERRIDE; |
| 92 | 94 |
| 93 // Overridden from NotificationObserver: | 95 // Overridden from NotificationObserver: |
| 94 virtual void Observe(NotificationType type, | 96 virtual void Observe(NotificationType type, |
| 95 const NotificationSource& source, | 97 const NotificationSource& source, |
| 96 const NotificationDetails& details); | 98 const NotificationDetails& details); |
| 97 | 99 |
| 98 // Initialize the offset used to calculate the position to create windows | 100 // Initialize the offset used to calculate the position to create windows |
| 99 // in |GetWindowCreatePoint|. | 101 // in |GetWindowCreatePoint|. |
| 100 void InitWindowCreatePoint(); | 102 void InitWindowCreatePoint(); |
| 101 | 103 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 263 |
| 262 // Timer used to bring the window under the cursor to front. If the user | 264 // Timer used to bring the window under the cursor to front. If the user |
| 263 // stops moving the mouse for a brief time over a browser window, it is | 265 // stops moving the mouse for a brief time over a browser window, it is |
| 264 // brought to front. | 266 // brought to front. |
| 265 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; | 267 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; |
| 266 | 268 |
| 267 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); | 269 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); |
| 268 }; | 270 }; |
| 269 | 271 |
| 270 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ | 272 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ |
| OLD | NEW |