Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/ui/views/tabs/default_tab_drag_controller.h

Issue 8772041: Remove deprecated TabContentsDelegate::OpenURLFromTab variant (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_DEFAULT_TAB_DRAG_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_DEFAULT_TAB_DRAG_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_DEFAULT_TAB_DRAG_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_DEFAULT_TAB_DRAG_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Sets |drag_data| from |tab|. This also registers for necessary 106 // Sets |drag_data| from |tab|. This also registers for necessary
107 // notifications and resets the delegate of the TabContentsWrapper. 107 // notifications and resets the delegate of the TabContentsWrapper.
108 void InitTabDragData(BaseTab* tab, TabDragData* drag_data); 108 void InitTabDragData(BaseTab* tab, TabDragData* drag_data);
109 109
110 // TabDragController overrides: 110 // TabDragController overrides:
111 virtual void Drag() OVERRIDE; 111 virtual void Drag() OVERRIDE;
112 virtual void EndDrag(bool canceled) OVERRIDE; 112 virtual void EndDrag(bool canceled) OVERRIDE;
113 virtual bool GetStartedDrag() const OVERRIDE; 113 virtual bool GetStartedDrag() const OVERRIDE;
114 114
115 // Overridden from TabContentsDelegate: 115 // Overridden from TabContentsDelegate:
116 virtual TabContents* OpenURLFromTab(
117 TabContents* source,
118 const GURL& url,
119 const GURL& referrer,
120 WindowOpenDisposition disposition,
121 content::PageTransition transition) OVERRIDE;
122 virtual TabContents* OpenURLFromTab(TabContents* source, 116 virtual TabContents* OpenURLFromTab(TabContents* source,
123 const OpenURLParams& params) OVERRIDE; 117 const OpenURLParams& params) OVERRIDE;
124 virtual void NavigationStateChanged(const TabContents* source, 118 virtual void NavigationStateChanged(const TabContents* source,
125 unsigned changed_flags) OVERRIDE; 119 unsigned changed_flags) OVERRIDE;
126 virtual void AddNewContents(TabContents* source, 120 virtual void AddNewContents(TabContents* source,
127 TabContents* new_contents, 121 TabContents* new_contents,
128 WindowOpenDisposition disposition, 122 WindowOpenDisposition disposition,
129 const gfx::Rect& initial_pos, 123 const gfx::Rect& initial_pos,
130 bool user_gesture) OVERRIDE; 124 bool user_gesture) OVERRIDE;
131 virtual void LoadingStateChanged(TabContents* source) OVERRIDE; 125 virtual void LoadingStateChanged(TabContents* source) OVERRIDE;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // details. 359 // details.
366 TabStripSelectionModel initial_selection_model_; 360 TabStripSelectionModel initial_selection_model_;
367 361
368 // The selection model of |attached_tabstrip_| before the tabs were attached. 362 // The selection model of |attached_tabstrip_| before the tabs were attached.
369 TabStripSelectionModel selection_model_before_attach_; 363 TabStripSelectionModel selection_model_before_attach_;
370 364
371 DISALLOW_COPY_AND_ASSIGN(DefaultTabDragController); 365 DISALLOW_COPY_AND_ASSIGN(DefaultTabDragController);
372 }; 366 };
373 367
374 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DEFAULT_TAB_DRAG_CONTROLLER_H_ 368 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DEFAULT_TAB_DRAG_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/sad_tab_view.cc ('k') | chrome/browser/ui/views/tabs/default_tab_drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698