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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual void ShowCreateWebAppShortcutsDialog( | 100 virtual void ShowCreateWebAppShortcutsDialog( |
101 TabContentsWrapper* tab_contents); | 101 TabContentsWrapper* tab_contents); |
102 virtual void ShowCreateChromeAppShortcutsDialog(Profile* profile, | 102 virtual void ShowCreateChromeAppShortcutsDialog(Profile* profile, |
103 const Extension* app); | 103 const Extension* app); |
104 virtual void Cut(); | 104 virtual void Cut(); |
105 virtual void Copy(); | 105 virtual void Copy(); |
106 virtual void Paste(); | 106 virtual void Paste(); |
107 virtual void ToggleTabStripMode(); | 107 virtual void ToggleTabStripMode(); |
108 virtual void ToggleUseCompactNavigationBar() {} | 108 virtual void ToggleUseCompactNavigationBar() {} |
109 virtual void OpenTabpose(); | 109 virtual void OpenTabpose(); |
| 110 virtual void SetPresentationMode(bool presentation_mode); |
| 111 virtual bool InPresentationMode(); |
110 virtual void PrepareForInstant(); | 112 virtual void PrepareForInstant(); |
111 virtual void ShowInstant(TabContentsWrapper* preview); | 113 virtual void ShowInstant(TabContentsWrapper* preview); |
112 virtual void HideInstant(bool instant_is_active); | 114 virtual void HideInstant(bool instant_is_active); |
113 virtual gfx::Rect GetInstantBounds(); | 115 virtual gfx::Rect GetInstantBounds(); |
114 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 116 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
115 const gfx::Rect& bounds); | 117 const gfx::Rect& bounds); |
116 | 118 |
117 // Overridden from NotificationObserver | 119 // Overridden from NotificationObserver |
118 virtual void Observe(int type, | 120 virtual void Observe(int type, |
119 const NotificationSource& source, | 121 const NotificationSource& source, |
(...skipping 15 matching lines...) Expand all Loading... |
135 void UpdateSidebarForContents(TabContents* tab_contents); | 137 void UpdateSidebarForContents(TabContents* tab_contents); |
136 | 138 |
137 NotificationRegistrar registrar_; | 139 NotificationRegistrar registrar_; |
138 Browser* browser_; // weak, owned by controller | 140 Browser* browser_; // weak, owned by controller |
139 BrowserWindowController* controller_; // weak, owns us | 141 BrowserWindowController* controller_; // weak, owns us |
140 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; | 142 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; |
141 scoped_nsobject<NSString> pending_window_title_; | 143 scoped_nsobject<NSString> pending_window_title_; |
142 }; | 144 }; |
143 | 145 |
144 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 146 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
OLD | NEW |