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

Side by Side Diff: chrome/browser/ui/browser_tab_strip_model_delegate.h

Issue 23835007: DevTools: Do not close devtools if there are dirty files in workspace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revisiting naming & comments Created 7 years, 1 month 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_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h"
(...skipping 14 matching lines...) Expand all
25 const DockInfo& dock_info, 25 const DockInfo& dock_info,
26 bool maximize) OVERRIDE; 26 bool maximize) OVERRIDE;
27 virtual void WillAddWebContents(content::WebContents* contents) OVERRIDE; 27 virtual void WillAddWebContents(content::WebContents* contents) OVERRIDE;
28 virtual int GetDragActions() const OVERRIDE; 28 virtual int GetDragActions() const OVERRIDE;
29 virtual bool CanDuplicateContentsAt(int index) OVERRIDE; 29 virtual bool CanDuplicateContentsAt(int index) OVERRIDE;
30 virtual void DuplicateContentsAt(int index) OVERRIDE; 30 virtual void DuplicateContentsAt(int index) OVERRIDE;
31 virtual void CloseFrameAfterDragSession() OVERRIDE; 31 virtual void CloseFrameAfterDragSession() OVERRIDE;
32 virtual void CreateHistoricalTab(content::WebContents* contents) OVERRIDE; 32 virtual void CreateHistoricalTab(content::WebContents* contents) OVERRIDE;
33 virtual bool RunUnloadListenerBeforeClosing( 33 virtual bool RunUnloadListenerBeforeClosing(
34 content::WebContents* contents) OVERRIDE; 34 content::WebContents* contents) OVERRIDE;
35 virtual bool ShouldRunUnloadListenerBeforeClosing(
36 content::WebContents* contents) OVERRIDE;
35 virtual bool CanBookmarkAllTabs() const OVERRIDE; 37 virtual bool CanBookmarkAllTabs() const OVERRIDE;
36 virtual void BookmarkAllTabs() OVERRIDE; 38 virtual void BookmarkAllTabs() OVERRIDE;
37 virtual RestoreTabType GetRestoreTabType() OVERRIDE; 39 virtual RestoreTabType GetRestoreTabType() OVERRIDE;
38 virtual void RestoreTab() OVERRIDE; 40 virtual void RestoreTab() OVERRIDE;
39 41
40 void CloseFrame(); 42 void CloseFrame();
41 43
42 Browser* browser_; 44 Browser* browser_;
43 45
44 // The following factory is used to close the frame at a later time. 46 // The following factory is used to close the frame at a later time.
45 base::WeakPtrFactory<BrowserTabStripModelDelegate> weak_factory_; 47 base::WeakPtrFactory<BrowserTabStripModelDelegate> weak_factory_;
46 48
47 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripModelDelegate); 49 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripModelDelegate);
48 }; 50 };
49 51
50 } // namespace chrome 52 } // namespace chrome
51 53
52 #endif // CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_ 54 #endif // CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698