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

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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void 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,
218 bool* was_blocked) OVERRIDE;
218 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; 219 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
219 virtual bool ShouldSuppressDialogs() OVERRIDE; 220 virtual bool ShouldSuppressDialogs() OVERRIDE;
220 virtual content::JavaScriptDialogCreator* 221 virtual content::JavaScriptDialogCreator*
221 GetJavaScriptDialogCreator() OVERRIDE; 222 GetJavaScriptDialogCreator() OVERRIDE;
222 223
223 // Overridden from content::NotificationObserver: 224 // Overridden from content::NotificationObserver:
224 virtual void Observe(int type, 225 virtual void Observe(int type,
225 const content::NotificationSource& source, 226 const content::NotificationSource& source,
226 const content::NotificationDetails& details) OVERRIDE; 227 const content::NotificationDetails& details) OVERRIDE;
227 228
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 // Non-null for the duration of RunMoveLoop. 579 // Non-null for the duration of RunMoveLoop.
579 views::Widget* move_loop_widget_; 580 views::Widget* move_loop_widget_;
580 581
581 // If non-null set to true from destructor. 582 // If non-null set to true from destructor.
582 bool* destroyed_; 583 bool* destroyed_;
583 584
584 DISALLOW_COPY_AND_ASSIGN(TabDragController); 585 DISALLOW_COPY_AND_ASSIGN(TabDragController);
585 }; 586 };
586 587
587 #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