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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 TabContents* new_contents, | 81 TabContents* new_contents, |
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 LoadingStateChanged(TabContents* source); | 85 virtual void LoadingStateChanged(TabContents* source); |
86 virtual bool IsPopup(const TabContents* source) const; | 86 virtual bool IsPopup(const TabContents* source) const; |
87 virtual content::JavaScriptDialogCreator* | 87 virtual content::JavaScriptDialogCreator* |
88 GetJavaScriptDialogCreator() OVERRIDE; | 88 GetJavaScriptDialogCreator() OVERRIDE; |
89 | 89 |
90 // Overridden from NotificationObserver: | 90 // Overridden from NotificationObserver: |
91 virtual void Observe(NotificationType type, | 91 virtual void Observe(int type, |
92 const NotificationSource& source, | 92 const NotificationSource& source, |
93 const NotificationDetails& details); | 93 const NotificationDetails& details); |
94 | 94 |
95 // Initialize the offset used to calculate the position to create windows | 95 // Initialize the offset used to calculate the position to create windows |
96 // in |GetWindowCreatePoint|. | 96 // in |GetWindowCreatePoint|. |
97 void InitWindowCreatePoint(); | 97 void InitWindowCreatePoint(); |
98 | 98 |
99 // Returns the point where a detached window should be created given the | 99 // Returns the point where a detached window should be created given the |
100 // current mouse position. | 100 // current mouse position. |
101 gfx::Point GetWindowCreatePoint() const; | 101 gfx::Point GetWindowCreatePoint() const; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 | 258 |
259 // Timer used to bring the window under the cursor to front. If the user | 259 // Timer used to bring the window under the cursor to front. If the user |
260 // stops moving the mouse for a brief time over a browser window, it is | 260 // stops moving the mouse for a brief time over a browser window, it is |
261 // brought to front. | 261 // brought to front. |
262 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; | 262 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; |
263 | 263 |
264 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); | 264 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); |
265 }; | 265 }; |
266 | 266 |
267 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ | 267 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ |
OLD | NEW |