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

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

Issue 7096016: Remove JS dialog dependency from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now a tc delegate Created 9 years, 6 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) 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_DRAGGED_TAB_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 const gfx::Rect& initial_pos, 141 const gfx::Rect& initial_pos,
142 bool user_gesture) OVERRIDE; 142 bool user_gesture) OVERRIDE;
143 virtual void ActivateContents(TabContents* contents) OVERRIDE; 143 virtual void ActivateContents(TabContents* contents) OVERRIDE;
144 virtual void DeactivateContents(TabContents* contents) OVERRIDE; 144 virtual void DeactivateContents(TabContents* contents) OVERRIDE;
145 virtual void LoadingStateChanged(TabContents* source) OVERRIDE; 145 virtual void LoadingStateChanged(TabContents* source) OVERRIDE;
146 virtual void CloseContents(TabContents* source) OVERRIDE; 146 virtual void CloseContents(TabContents* source) OVERRIDE;
147 virtual void MoveContents(TabContents* source, 147 virtual void MoveContents(TabContents* source,
148 const gfx::Rect& pos) OVERRIDE; 148 const gfx::Rect& pos) OVERRIDE;
149 virtual void UpdateTargetURL(TabContents* source, const GURL& url) OVERRIDE; 149 virtual void UpdateTargetURL(TabContents* source, const GURL& url) OVERRIDE;
150 virtual bool ShouldSuppressDialogs() OVERRIDE; 150 virtual bool ShouldSuppressDialogs() OVERRIDE;
151 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(
152 ) OVERRIDE;
151 153
152 // Overridden from NotificationObserver: 154 // Overridden from NotificationObserver:
153 virtual void Observe(NotificationType type, 155 virtual void Observe(NotificationType type,
154 const NotificationSource& source, 156 const NotificationSource& source,
155 const NotificationDetails& details) OVERRIDE; 157 const NotificationDetails& details) OVERRIDE;
156 158
157 // Overridden from MessageLoop::Observer: 159 // Overridden from MessageLoop::Observer:
158 #if defined(OS_WIN) 160 #if defined(OS_WIN)
159 virtual void WillProcessMessage(const MSG& msg) OVERRIDE; 161 virtual void WillProcessMessage(const MSG& msg) OVERRIDE;
160 virtual void DidProcessMessage(const MSG& msg) OVERRIDE; 162 virtual void DidProcessMessage(const MSG& msg) OVERRIDE;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // Index of the source tab in drag_data_. 373 // Index of the source tab in drag_data_.
372 size_t source_tab_index_; 374 size_t source_tab_index_;
373 375
374 // True until |MoveAttached| is invoked once. 376 // True until |MoveAttached| is invoked once.
375 bool initial_move_; 377 bool initial_move_;
376 378
377 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); 379 DISALLOW_COPY_AND_ASSIGN(DraggedTabController);
378 }; 380 };
379 381
380 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ 382 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698