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/memory/scoped_nsobject.h" | 9 #include "base/memory/scoped_nsobject.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual void ShowUpdateChromeDialog(); | 77 virtual void ShowUpdateChromeDialog(); |
78 virtual void ShowTaskManager(); | 78 virtual void ShowTaskManager(); |
79 virtual void ShowBackgroundPages(); | 79 virtual void ShowBackgroundPages(); |
80 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); | 80 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); |
81 virtual bool IsDownloadShelfVisible() const; | 81 virtual bool IsDownloadShelfVisible() const; |
82 virtual DownloadShelf* GetDownloadShelf(); | 82 virtual DownloadShelf* GetDownloadShelf(); |
83 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); | 83 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); |
84 virtual void ShowCollectedCookiesDialog(TabContents* tab_contents); | 84 virtual void ShowCollectedCookiesDialog(TabContents* tab_contents); |
85 virtual void ShowThemeInstallBubble(); | 85 virtual void ShowThemeInstallBubble(); |
86 virtual void ConfirmBrowserCloseWithPendingDownloads(); | 86 virtual void ConfirmBrowserCloseWithPendingDownloads(); |
87 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, | 87 virtual gfx::NativeWindow ShowHTMLDialog(HtmlDialogUIDelegate* delegate, |
88 gfx::NativeWindow parent_window); | 88 gfx::NativeWindow parent_window); |
89 virtual void UserChangedTheme(); | 89 virtual void UserChangedTheme(); |
90 virtual int GetExtraRenderViewHeight() const; | 90 virtual int GetExtraRenderViewHeight() const; |
91 virtual void TabContentsFocused(TabContents* tab_contents); | 91 virtual void TabContentsFocused(TabContents* tab_contents); |
92 virtual void ShowPageInfo(Profile* profile, | 92 virtual void ShowPageInfo(Profile* profile, |
93 const GURL& url, | 93 const GURL& url, |
94 const NavigationEntry::SSLStatus& ssl, | 94 const NavigationEntry::SSLStatus& ssl, |
95 bool show_history); | 95 bool show_history); |
96 virtual void ShowAppMenu(); | 96 virtual void ShowAppMenu(); |
97 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 97 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
98 bool* is_keyboard_shortcut); | 98 bool* is_keyboard_shortcut); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 void UpdateSidebarForContents(TabContents* tab_contents); | 138 void UpdateSidebarForContents(TabContents* tab_contents); |
139 | 139 |
140 NotificationRegistrar registrar_; | 140 NotificationRegistrar registrar_; |
141 Browser* browser_; // weak, owned by controller | 141 Browser* browser_; // weak, owned by controller |
142 BrowserWindowController* controller_; // weak, owns us | 142 BrowserWindowController* controller_; // weak, owns us |
143 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; | 143 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; |
144 scoped_nsobject<NSString> pending_window_title_; | 144 scoped_nsobject<NSString> pending_window_title_; |
145 }; | 145 }; |
146 | 146 |
147 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 147 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |