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