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 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual gfx::Rect GetBounds() const OVERRIDE; | 43 virtual gfx::Rect GetBounds() const OVERRIDE; |
44 virtual void Show() OVERRIDE; | 44 virtual void Show() OVERRIDE; |
45 virtual void ShowInactive() OVERRIDE; | 45 virtual void ShowInactive() OVERRIDE; |
46 virtual void Close() OVERRIDE; | 46 virtual void Close() OVERRIDE; |
47 virtual void Activate() OVERRIDE; | 47 virtual void Activate() OVERRIDE; |
48 virtual void Deactivate() OVERRIDE; | 48 virtual void Deactivate() OVERRIDE; |
49 virtual void Maximize() OVERRIDE; | 49 virtual void Maximize() OVERRIDE; |
50 virtual void Minimize() OVERRIDE; | 50 virtual void Minimize() OVERRIDE; |
51 virtual void Restore() OVERRIDE; | 51 virtual void Restore() OVERRIDE; |
52 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 52 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
53 virtual void SetDraggableRegion(SkRegion* region) OVERRIDE; | |
54 virtual void FlashFrame(bool flash) OVERRIDE; | 53 virtual void FlashFrame(bool flash) OVERRIDE; |
55 virtual bool IsAlwaysOnTop() const OVERRIDE; | 54 virtual bool IsAlwaysOnTop() const OVERRIDE; |
56 | 55 |
57 // Called when the window is about to be closed. | 56 // Called when the window is about to be closed. |
58 void WindowWillClose(); | 57 void WindowWillClose(); |
59 | 58 |
60 // Called when the window is focused. | 59 // Called when the window is focused. |
61 void WindowDidBecomeKey(); | 60 void WindowDidBecomeKey(); |
62 | 61 |
63 // Called when the window is defocused. | 62 // Called when the window is defocused. |
(...skipping 12 matching lines...) Expand all Loading... |
76 bool is_fullscreen_; | 75 bool is_fullscreen_; |
77 NSRect restored_bounds_; | 76 NSRect restored_bounds_; |
78 | 77 |
79 scoped_nsobject<ShellWindowController> window_controller_; | 78 scoped_nsobject<ShellWindowController> window_controller_; |
80 NSInteger attention_request_id_; // identifier from requestUserAttention | 79 NSInteger attention_request_id_; // identifier from requestUserAttention |
81 | 80 |
82 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); | 81 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); |
83 }; | 82 }; |
84 | 83 |
85 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 84 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
OLD | NEW |