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

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

Issue 10868116: Pass result of blockage across content API when new tab blocked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months 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) 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Sets |drag_data| from |tab|. This also registers for necessary 203 // Sets |drag_data| from |tab|. This also registers for necessary
204 // notifications and resets the delegate of the TabContents. 204 // notifications and resets the delegate of the TabContents.
205 void InitTabDragData(BaseTab* tab, TabDragData* drag_data); 205 void InitTabDragData(BaseTab* tab, TabDragData* drag_data);
206 206
207 // Overridden from content::WebContentsDelegate: 207 // Overridden from content::WebContentsDelegate:
208 virtual content::WebContents* OpenURLFromTab( 208 virtual content::WebContents* OpenURLFromTab(
209 content::WebContents* source, 209 content::WebContents* source,
210 const content::OpenURLParams& params) OVERRIDE; 210 const content::OpenURLParams& params) OVERRIDE;
211 virtual void NavigationStateChanged(const content::WebContents* source, 211 virtual void NavigationStateChanged(const content::WebContents* source,
212 unsigned changed_flags) OVERRIDE; 212 unsigned changed_flags) OVERRIDE;
213 virtual void AddNewContents(content::WebContents* source, 213 virtual bool AddNewContents(content::WebContents* source,
214 content::WebContents* new_contents, 214 content::WebContents* new_contents,
215 WindowOpenDisposition disposition, 215 WindowOpenDisposition disposition,
216 const gfx::Rect& initial_pos, 216 const gfx::Rect& initial_pos,
217 bool user_gesture) OVERRIDE; 217 bool user_gesture) OVERRIDE;
218 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; 218 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
219 virtual bool ShouldSuppressDialogs() OVERRIDE; 219 virtual bool ShouldSuppressDialogs() OVERRIDE;
220 virtual content::JavaScriptDialogCreator* 220 virtual content::JavaScriptDialogCreator*
221 GetJavaScriptDialogCreator() OVERRIDE; 221 GetJavaScriptDialogCreator() OVERRIDE;
222 222
223 // Overridden from content::NotificationObserver: 223 // Overridden from content::NotificationObserver:
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 // Non-null for the duration of RunMoveLoop. 578 // Non-null for the duration of RunMoveLoop.
579 views::Widget* move_loop_widget_; 579 views::Widget* move_loop_widget_;
580 580
581 // If non-null set to true from destructor. 581 // If non-null set to true from destructor.
582 bool* destroyed_; 582 bool* destroyed_;
583 583
584 DISALLOW_COPY_AND_ASSIGN(TabDragController); 584 DISALLOW_COPY_AND_ASSIGN(TabDragController);
585 }; 585 };
586 586
587 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ 587 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698