| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_BROWSER_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual void ShowAppMenu(); | 100 virtual void ShowAppMenu(); |
| 101 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 101 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 102 bool* is_keyboard_shortcut); | 102 bool* is_keyboard_shortcut); |
| 103 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 103 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 104 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents); | 104 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents); |
| 105 virtual void Cut(); | 105 virtual void Cut(); |
| 106 virtual void Copy(); | 106 virtual void Copy(); |
| 107 virtual void Paste(); | 107 virtual void Paste(); |
| 108 virtual void ToggleTabStripMode(); | 108 virtual void ToggleTabStripMode(); |
| 109 virtual void OpenTabpose(); | 109 virtual void OpenTabpose(); |
| 110 virtual void PrepareForInstant(); |
| 110 virtual void ShowInstant(TabContents* preview_contents); | 111 virtual void ShowInstant(TabContents* preview_contents); |
| 111 virtual void HideInstant(); | 112 virtual void HideInstant(); |
| 112 virtual gfx::Rect GetInstantBounds(); | 113 virtual gfx::Rect GetInstantBounds(); |
| 113 | 114 |
| 114 // Overridden from NotificationObserver | 115 // Overridden from NotificationObserver |
| 115 virtual void Observe(NotificationType type, | 116 virtual void Observe(NotificationType type, |
| 116 const NotificationSource& source, | 117 const NotificationSource& source, |
| 117 const NotificationDetails& details); | 118 const NotificationDetails& details); |
| 118 | 119 |
| 119 // Adds the given FindBar cocoa controller to this browser window. | 120 // Adds the given FindBar cocoa controller to this browser window. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 132 void UpdateSidebarForContents(TabContents* tab_contents); | 133 void UpdateSidebarForContents(TabContents* tab_contents); |
| 133 | 134 |
| 134 NotificationRegistrar registrar_; | 135 NotificationRegistrar registrar_; |
| 135 Browser* browser_; // weak, owned by controller | 136 Browser* browser_; // weak, owned by controller |
| 136 BrowserWindowController* controller_; // weak, owns us | 137 BrowserWindowController* controller_; // weak, owns us |
| 137 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; | 138 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; |
| 138 scoped_nsobject<NSString> pending_window_title_; | 139 scoped_nsobject<NSString> pending_window_title_; |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ | 142 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |