| 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_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 // Overridden from NotificationObserver: | 154 // Overridden from NotificationObserver: |
| 155 virtual void Observe(NotificationType type, | 155 virtual void Observe(NotificationType type, |
| 156 const NotificationSource& source, | 156 const NotificationSource& source, |
| 157 const NotificationDetails& details) OVERRIDE; | 157 const NotificationDetails& details) OVERRIDE; |
| 158 | 158 |
| 159 // Overridden from MessageLoop::Observer: | 159 // Overridden from MessageLoop::Observer: |
| 160 #if defined(OS_WIN) | 160 #if defined(OS_WIN) |
| 161 virtual void WillProcessMessage(const MSG& msg) OVERRIDE; | 161 virtual void WillProcessMessage(const MSG& msg) OVERRIDE; |
| 162 virtual void DidProcessMessage(const MSG& msg) OVERRIDE; | 162 virtual void DidProcessMessage(const MSG& msg) OVERRIDE; |
| 163 #elif defined(TOUCH_UI) |
| 164 virtual EventStatus WillProcessXEvent(XEvent* xevent) OVERRIDE; |
| 163 #elif defined(TOOLKIT_USES_GTK) | 165 #elif defined(TOOLKIT_USES_GTK) |
| 164 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; | 166 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; |
| 165 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; | 167 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; |
| 166 #endif | 168 #endif |
| 167 | 169 |
| 168 // Initialize the offset used to calculate the position to create windows | 170 // Initialize the offset used to calculate the position to create windows |
| 169 // in |GetWindowCreatePoint|. This should only be invoked from |Init|. | 171 // in |GetWindowCreatePoint|. This should only be invoked from |Init|. |
| 170 void InitWindowCreatePoint(); | 172 void InitWindowCreatePoint(); |
| 171 | 173 |
| 172 // Returns the point where a detached window should be created given the | 174 // Returns the point where a detached window should be created given the |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // Index of the source tab in drag_data_. | 375 // Index of the source tab in drag_data_. |
| 374 size_t source_tab_index_; | 376 size_t source_tab_index_; |
| 375 | 377 |
| 376 // True until |MoveAttached| is invoked once. | 378 // True until |MoveAttached| is invoked once. |
| 377 bool initial_move_; | 379 bool initial_move_; |
| 378 | 380 |
| 379 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); | 381 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); |
| 380 }; | 382 }; |
| 381 | 383 |
| 382 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 384 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| OLD | NEW |