| 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_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // Sets |drag_data| from |tab|. This also registers for necessary | 204 // Sets |drag_data| from |tab|. This also registers for necessary |
| 205 // notifications and resets the delegate of the TabContents. | 205 // notifications and resets the delegate of the TabContents. |
| 206 void InitTabDragData(BaseTab* tab, TabDragData* drag_data); | 206 void InitTabDragData(BaseTab* tab, TabDragData* drag_data); |
| 207 | 207 |
| 208 // Overridden from content::WebContentsDelegate: | 208 // Overridden from content::WebContentsDelegate: |
| 209 virtual content::WebContents* OpenURLFromTab( | 209 virtual content::WebContents* OpenURLFromTab( |
| 210 content::WebContents* source, | 210 content::WebContents* source, |
| 211 const content::OpenURLParams& params) OVERRIDE; | 211 const content::OpenURLParams& params) OVERRIDE; |
| 212 virtual void NavigationStateChanged(const content::WebContents* source, | 212 virtual void NavigationStateChanged(const content::WebContents* source, |
| 213 unsigned changed_flags) OVERRIDE; | 213 unsigned changed_flags) OVERRIDE; |
| 214 virtual void AddNewContents(content::WebContents* source, | 214 virtual bool AddNewContents(content::WebContents* source, |
| 215 content::WebContents* new_contents, | 215 content::WebContents* new_contents, |
| 216 WindowOpenDisposition disposition, | 216 WindowOpenDisposition disposition, |
| 217 const gfx::Rect& initial_pos, | 217 const gfx::Rect& initial_pos, |
| 218 bool user_gesture) OVERRIDE; | 218 bool user_gesture) OVERRIDE; |
| 219 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; | 219 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; |
| 220 virtual bool ShouldSuppressDialogs() OVERRIDE; | 220 virtual bool ShouldSuppressDialogs() OVERRIDE; |
| 221 virtual content::JavaScriptDialogCreator* | 221 virtual content::JavaScriptDialogCreator* |
| 222 GetJavaScriptDialogCreator() OVERRIDE; | 222 GetJavaScriptDialogCreator() OVERRIDE; |
| 223 | 223 |
| 224 // Overridden from content::NotificationObserver: | 224 // Overridden from content::NotificationObserver: |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 // Non-null for the duration of RunMoveLoop. | 579 // Non-null for the duration of RunMoveLoop. |
| 580 views::Widget* move_loop_widget_; | 580 views::Widget* move_loop_widget_; |
| 581 | 581 |
| 582 // If non-null set to true from destructor. | 582 // If non-null set to true from destructor. |
| 583 bool* destroyed_; | 583 bool* destroyed_; |
| 584 | 584 |
| 585 DISALLOW_COPY_AND_ASSIGN(TabDragController); | 585 DISALLOW_COPY_AND_ASSIGN(TabDragController); |
| 586 }; | 586 }; |
| 587 | 587 |
| 588 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ | 588 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ |
| OLD | NEW |