OLD | NEW |
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_COCOA_BROWSER_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 Profile* profile); | 72 Profile* profile); |
73 virtual void ToggleBookmarkBar(); | 73 virtual void ToggleBookmarkBar(); |
74 virtual void ShowAboutChromeDialog(); | 74 virtual void ShowAboutChromeDialog(); |
75 virtual void ShowUpdateChromeDialog(); | 75 virtual void ShowUpdateChromeDialog(); |
76 virtual void ShowTaskManager(); | 76 virtual void ShowTaskManager(); |
77 virtual void ShowBackgroundPages(); | 77 virtual void ShowBackgroundPages(); |
78 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); | 78 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); |
79 virtual bool IsDownloadShelfVisible() const; | 79 virtual bool IsDownloadShelfVisible() const; |
80 virtual DownloadShelf* GetDownloadShelf(); | 80 virtual DownloadShelf* GetDownloadShelf(); |
81 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); | 81 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); |
82 virtual void ShowContentSettingsWindow(ContentSettingsType content_type, | |
83 Profile* profile); | |
84 virtual void ShowCollectedCookiesDialog(TabContents* tab_contents); | 82 virtual void ShowCollectedCookiesDialog(TabContents* tab_contents); |
85 virtual void ShowProfileErrorDialog(int message_id); | 83 virtual void ShowProfileErrorDialog(int message_id); |
86 virtual void ShowThemeInstallBubble(); | 84 virtual void ShowThemeInstallBubble(); |
87 virtual void ConfirmBrowserCloseWithPendingDownloads(); | 85 virtual void ConfirmBrowserCloseWithPendingDownloads(); |
88 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, | 86 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, |
89 gfx::NativeWindow parent_window); | 87 gfx::NativeWindow parent_window); |
90 virtual void UserChangedTheme(); | 88 virtual void UserChangedTheme(); |
91 virtual int GetExtraRenderViewHeight() const; | 89 virtual int GetExtraRenderViewHeight() const; |
92 virtual void TabContentsFocused(TabContents* tab_contents); | 90 virtual void TabContentsFocused(TabContents* tab_contents); |
93 virtual void ShowPageInfo(Profile* profile, | 91 virtual void ShowPageInfo(Profile* profile, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 void UpdateSidebarForContents(TabContents* tab_contents); | 130 void UpdateSidebarForContents(TabContents* tab_contents); |
133 | 131 |
134 NotificationRegistrar registrar_; | 132 NotificationRegistrar registrar_; |
135 Browser* browser_; // weak, owned by controller | 133 Browser* browser_; // weak, owned by controller |
136 BrowserWindowController* controller_; // weak, owns us | 134 BrowserWindowController* controller_; // weak, owns us |
137 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; | 135 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; |
138 scoped_nsobject<NSString> pending_window_title_; | 136 scoped_nsobject<NSString> pending_window_title_; |
139 }; | 137 }; |
140 | 138 |
141 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 139 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |