| 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_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 ShellWindowCocoa(Profile* profile, | 33 ShellWindowCocoa(Profile* profile, |
| 34 const extensions::Extension* extension, | 34 const extensions::Extension* extension, |
| 35 const GURL& url, | 35 const GURL& url, |
| 36 const CreateParams params); | 36 const CreateParams params); |
| 37 | 37 |
| 38 // BaseWindow implementation. | 38 // BaseWindow implementation. |
| 39 virtual bool IsActive() const OVERRIDE; | 39 virtual bool IsActive() const OVERRIDE; |
| 40 virtual bool IsMaximized() const OVERRIDE; | 40 virtual bool IsMaximized() const OVERRIDE; |
| 41 virtual bool IsMinimized() const OVERRIDE; | 41 virtual bool IsMinimized() const OVERRIDE; |
| 42 virtual bool IsFullscreen() const OVERRIDE; | 42 virtual bool IsFullscreen() const OVERRIDE; |
| 43 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
| 43 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; | 44 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; |
| 44 virtual gfx::Rect GetBounds() const OVERRIDE; | 45 virtual gfx::Rect GetBounds() const OVERRIDE; |
| 45 virtual void Show() OVERRIDE; | 46 virtual void Show() OVERRIDE; |
| 46 virtual void ShowInactive() OVERRIDE; | 47 virtual void ShowInactive() OVERRIDE; |
| 47 virtual void Close() OVERRIDE; | 48 virtual void Close() OVERRIDE; |
| 48 virtual void Activate() OVERRIDE; | 49 virtual void Activate() OVERRIDE; |
| 49 virtual void Deactivate() OVERRIDE; | 50 virtual void Deactivate() OVERRIDE; |
| 50 virtual void Maximize() OVERRIDE; | 51 virtual void Maximize() OVERRIDE; |
| 51 virtual void Minimize() OVERRIDE; | 52 virtual void Minimize() OVERRIDE; |
| 52 virtual void Restore() OVERRIDE; | 53 virtual void Restore() OVERRIDE; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 63 | 64 |
| 64 NSWindow* window() const; | 65 NSWindow* window() const; |
| 65 | 66 |
| 66 scoped_nsobject<ShellWindowController> window_controller_; | 67 scoped_nsobject<ShellWindowController> window_controller_; |
| 67 NSInteger attention_request_id_; // identifier from requestUserAttention | 68 NSInteger attention_request_id_; // identifier from requestUserAttention |
| 68 | 69 |
| 69 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); | 70 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 73 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
| OLD | NEW |