| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Overridden from content::WebContentsDelegate: | 86 // Overridden from content::WebContentsDelegate: |
| 87 virtual content::WebContents* OpenURLFromTab( | 87 virtual content::WebContents* OpenURLFromTab( |
| 88 content::WebContents* source, | 88 content::WebContents* source, |
| 89 const content::OpenURLParams& params) OVERRIDE; | 89 const content::OpenURLParams& params) OVERRIDE; |
| 90 virtual void NavigationStateChanged(const content::WebContents* source, | 90 virtual void NavigationStateChanged(const content::WebContents* source, |
| 91 unsigned changed_flags) OVERRIDE; | 91 unsigned changed_flags) OVERRIDE; |
| 92 virtual void AddNewContents(content::WebContents* source, | 92 virtual void AddNewContents(content::WebContents* source, |
| 93 content::WebContents* new_contents, | 93 content::WebContents* new_contents, |
| 94 WindowOpenDisposition disposition, | 94 WindowOpenDisposition disposition, |
| 95 const gfx::Rect& initial_pos, | 95 const gfx::Rect& initial_pos, |
| 96 bool user_gesture) OVERRIDE; | 96 bool user_gesture, |
| 97 bool* was_blocked) OVERRIDE; |
| 97 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; | 98 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; |
| 98 virtual content::JavaScriptDialogCreator* | 99 virtual content::JavaScriptDialogCreator* |
| 99 GetJavaScriptDialogCreator() OVERRIDE; | 100 GetJavaScriptDialogCreator() OVERRIDE; |
| 100 | 101 |
| 101 // Overridden from content::NotificationObserver: | 102 // Overridden from content::NotificationObserver: |
| 102 virtual void Observe(int type, | 103 virtual void Observe(int type, |
| 103 const content::NotificationSource& source, | 104 const content::NotificationSource& source, |
| 104 const content::NotificationDetails& details) OVERRIDE; | 105 const content::NotificationDetails& details) OVERRIDE; |
| 105 | 106 |
| 106 // Returns the point where a detached window should be created given the | 107 // Returns the point where a detached window should be created given the |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 260 |
| 260 // Timer used to bring the window under the cursor to front. If the user | 261 // Timer used to bring the window under the cursor to front. If the user |
| 261 // stops moving the mouse for a brief time over a browser window, it is | 262 // stops moving the mouse for a brief time over a browser window, it is |
| 262 // brought to front. | 263 // brought to front. |
| 263 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; | 264 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; |
| 264 | 265 |
| 265 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); | 266 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); |
| 266 }; | 267 }; |
| 267 | 268 |
| 268 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ | 269 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ |
| OLD | NEW |