Add a minor text member to ui::MenuModel.
[chromium-blink-merge.git] / chrome / browser / ui / browser_tab_strip_model_delegate.h
blob405c01f5ef7b90849e348348bea2ce05abb2228b
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h"
12 namespace chrome {
14 class BrowserTabStripModelDelegate : public TabStripModelDelegate {
15 public:
16 explicit BrowserTabStripModelDelegate(Browser* browser);
17 virtual ~BrowserTabStripModelDelegate();
19 private:
20 // Overridden from TabStripModelDelegate:
21 virtual void AddBlankTabAt(int index, bool foreground) OVERRIDE;
22 virtual Browser* CreateNewStripWithContents(
23 const std::vector<NewStripContents>& contentses,
24 const gfx::Rect& window_bounds,
25 const DockInfo& dock_info,
26 bool maximize) OVERRIDE;
27 virtual void WillAddWebContents(content::WebContents* contents) OVERRIDE;
28 virtual int GetDragActions() const OVERRIDE;
29 virtual bool CanDuplicateContentsAt(int index) OVERRIDE;
30 virtual void DuplicateContentsAt(int index) OVERRIDE;
31 virtual void CloseFrameAfterDragSession() OVERRIDE;
32 virtual void CreateHistoricalTab(content::WebContents* contents) OVERRIDE;
33 virtual bool RunUnloadListenerBeforeClosing(
34 content::WebContents* contents) OVERRIDE;
35 virtual bool CanBookmarkAllTabs() const OVERRIDE;
36 virtual void BookmarkAllTabs() OVERRIDE;
37 virtual RestoreTabType GetRestoreTabType() OVERRIDE;
38 virtual void RestoreTab() OVERRIDE;
40 void CloseFrame();
42 Browser* browser_;
44 // The following factory is used to close the frame at a later time.
45 base::WeakPtrFactory<BrowserTabStripModelDelegate> weak_factory_;
47 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripModelDelegate);
50 } // namespace chrome
52 #endif // CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_