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

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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698