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_PANELS_PANEL_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/ui/panels/native_panel.h" | 10 #include "chrome/browser/ui/panels/native_panel.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual void HandlePanelKeyboardEvent( | 45 virtual void HandlePanelKeyboardEvent( |
46 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 46 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
47 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; | 47 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; |
48 virtual bool IsPanelAlwaysOnTop() const OVERRIDE; | 48 virtual bool IsPanelAlwaysOnTop() const OVERRIDE; |
49 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; | 49 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
50 virtual void EnableResizeByMouse(bool enable) OVERRIDE; | 50 virtual void EnableResizeByMouse(bool enable) OVERRIDE; |
51 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; | 51 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; |
52 virtual void PanelExpansionStateChanging( | 52 virtual void PanelExpansionStateChanging( |
53 Panel::ExpansionState old_state, | 53 Panel::ExpansionState old_state, |
54 Panel::ExpansionState new_state) OVERRIDE; | 54 Panel::ExpansionState new_state) OVERRIDE; |
| 55 virtual void UpdatePanelStackingProperty() OVERRIDE; |
55 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; | 56 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; |
56 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; | 57 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; |
57 | 58 |
58 // These sizes are in screen coordinates. | 59 // These sizes are in screen coordinates. |
59 virtual gfx::Size WindowSizeFromContentSize( | 60 virtual gfx::Size WindowSizeFromContentSize( |
60 const gfx::Size& content_size) const OVERRIDE; | 61 const gfx::Size& content_size) const OVERRIDE; |
61 virtual gfx::Size ContentSizeFromWindowSize( | 62 virtual gfx::Size ContentSizeFromWindowSize( |
62 const gfx::Size& window_size) const OVERRIDE; | 63 const gfx::Size& window_size) const OVERRIDE; |
63 virtual int TitleOnlyHeight() const OVERRIDE; | 64 virtual int TitleOnlyHeight() const OVERRIDE; |
64 | 65 |
(...skipping 30 matching lines...) Expand all Loading... |
95 // True if the panel should always stay on top of other windows. | 96 // True if the panel should always stay on top of other windows. |
96 bool always_on_top_; | 97 bool always_on_top_; |
97 | 98 |
98 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 99 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
99 NSInteger attention_request_id_; // identifier from requestUserAttention. | 100 NSInteger attention_request_id_; // identifier from requestUserAttention. |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); | 102 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); |
102 }; | 103 }; |
103 | 104 |
104 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ | 105 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ |
OLD | NEW |