| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 virtual bool ShouldSuppressDialogs() OVERRIDE; | 146 virtual bool ShouldSuppressDialogs() OVERRIDE; |
| 147 virtual content::JavaScriptDialogCreator* | 147 virtual content::JavaScriptDialogCreator* |
| 148 GetJavaScriptDialogCreator() OVERRIDE; | 148 GetJavaScriptDialogCreator() OVERRIDE; |
| 149 | 149 |
| 150 // Overridden from NotificationObserver: | 150 // Overridden from NotificationObserver: |
| 151 virtual void Observe(int type, | 151 virtual void Observe(int type, |
| 152 const NotificationSource& source, | 152 const NotificationSource& source, |
| 153 const NotificationDetails& details) OVERRIDE; | 153 const NotificationDetails& details) OVERRIDE; |
| 154 | 154 |
| 155 // Overridden from MessageLoop::Observer: | 155 // Overridden from MessageLoop::Observer: |
| 156 #if defined(OS_WIN) | 156 #if defined(OS_WIN) || defined(TOUCH_UI) || defined(USE_AURA) |
| 157 virtual void WillProcessMessage(const MSG& msg) OVERRIDE; | 157 virtual base::EventStatus WillProcessEvent( |
| 158 virtual void DidProcessMessage(const MSG& msg) OVERRIDE; | 158 const base::NativeEvent& msg) OVERRIDE; |
| 159 #elif defined(TOUCH_UI) | 159 virtual void DidProcessEvent(const base::NativeEvent& msg) OVERRIDE; |
| 160 virtual EventStatus WillProcessXEvent(XEvent* xevent) OVERRIDE; | |
| 161 #elif defined(TOOLKIT_USES_GTK) | 160 #elif defined(TOOLKIT_USES_GTK) |
| 162 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; | 161 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; |
| 163 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; | 162 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; |
| 164 #endif | 163 #endif |
| 165 | 164 |
| 166 // Initialize the offset used to calculate the position to create windows | 165 // Initialize the offset used to calculate the position to create windows |
| 167 // in |GetWindowCreatePoint|. This should only be invoked from |Init|. | 166 // in |GetWindowCreatePoint|. This should only be invoked from |Init|. |
| 168 void InitWindowCreatePoint(); | 167 void InitWindowCreatePoint(); |
| 169 | 168 |
| 170 // Returns the point where a detached window should be created given the | 169 // 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... |
| 371 // Index of the source tab in drag_data_. | 370 // Index of the source tab in drag_data_. |
| 372 size_t source_tab_index_; | 371 size_t source_tab_index_; |
| 373 | 372 |
| 374 // True until |MoveAttached| is invoked once. | 373 // True until |MoveAttached| is invoked once. |
| 375 bool initial_move_; | 374 bool initial_move_; |
| 376 | 375 |
| 377 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); | 376 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); |
| 378 }; | 377 }; |
| 379 | 378 |
| 380 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 379 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| OLD | NEW |