| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 | 7 |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 const content::SSLStatus& ssl) OVERRIDE; | 131 const content::SSLStatus& ssl) OVERRIDE; |
| 132 virtual void ShowAppMenu() OVERRIDE; | 132 virtual void ShowAppMenu() OVERRIDE; |
| 133 virtual bool PreHandleKeyboardEvent( | 133 virtual bool PreHandleKeyboardEvent( |
| 134 const content::NativeWebKeyboardEvent& event, | 134 const content::NativeWebKeyboardEvent& event, |
| 135 bool* is_keyboard_shortcut) OVERRIDE; | 135 bool* is_keyboard_shortcut) OVERRIDE; |
| 136 virtual void HandleKeyboardEvent( | 136 virtual void HandleKeyboardEvent( |
| 137 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 137 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 138 virtual void Cut() OVERRIDE; | 138 virtual void Cut() OVERRIDE; |
| 139 virtual void Copy() OVERRIDE; | 139 virtual void Copy() OVERRIDE; |
| 140 virtual void Paste() OVERRIDE; | 140 virtual void Paste() OVERRIDE; |
| 141 virtual void OpenTabpose() OVERRIDE; | |
| 142 virtual void EnterFullscreenWithChrome() OVERRIDE; | 141 virtual void EnterFullscreenWithChrome() OVERRIDE; |
| 143 virtual bool IsFullscreenWithChrome() OVERRIDE; | 142 virtual bool IsFullscreenWithChrome() OVERRIDE; |
| 144 virtual bool IsFullscreenWithoutChrome() OVERRIDE; | 143 virtual bool IsFullscreenWithoutChrome() OVERRIDE; |
| 145 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 144 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
| 146 const gfx::Rect& bounds) OVERRIDE; | 145 const gfx::Rect& bounds) OVERRIDE; |
| 147 virtual FindBar* CreateFindBar() OVERRIDE; | 146 virtual FindBar* CreateFindBar() OVERRIDE; |
| 148 virtual web_modal::WebContentsModalDialogHost* | 147 virtual web_modal::WebContentsModalDialogHost* |
| 149 GetWebContentsModalDialogHost() OVERRIDE; | 148 GetWebContentsModalDialogHost() OVERRIDE; |
| 150 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 149 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
| 151 const gfx::Rect& rect) OVERRIDE; | 150 const gfx::Rect& rect) OVERRIDE; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 177 NSWindow* window() const; // Accessor for the (current) |NSWindow|. | 176 NSWindow* window() const; // Accessor for the (current) |NSWindow|. |
| 178 | 177 |
| 179 Browser* browser_; // weak, owned by controller | 178 Browser* browser_; // weak, owned by controller |
| 180 BrowserWindowController* controller_; // weak, owns us | 179 BrowserWindowController* controller_; // weak, owns us |
| 181 base::scoped_nsobject<NSString> pending_window_title_; | 180 base::scoped_nsobject<NSString> pending_window_title_; |
| 182 ui::WindowShowState initial_show_state_; | 181 ui::WindowShowState initial_show_state_; |
| 183 NSInteger attention_request_id_; // identifier from requestUserAttention | 182 NSInteger attention_request_id_; // identifier from requestUserAttention |
| 184 }; | 183 }; |
| 185 | 184 |
| 186 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ | 185 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |