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 28 matching lines...) Expand all Loading... |
39 virtual void PanelCut() OVERRIDE; | 39 virtual void PanelCut() OVERRIDE; |
40 virtual void PanelCopy() OVERRIDE; | 40 virtual void PanelCopy() OVERRIDE; |
41 virtual void PanelPaste() OVERRIDE; | 41 virtual void PanelPaste() OVERRIDE; |
42 virtual void DrawAttention(bool draw_attention) OVERRIDE; | 42 virtual void DrawAttention(bool draw_attention) OVERRIDE; |
43 virtual bool IsDrawingAttention() const OVERRIDE; | 43 virtual bool IsDrawingAttention() const OVERRIDE; |
44 virtual void HandlePanelKeyboardEvent( | 44 virtual void HandlePanelKeyboardEvent( |
45 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 45 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
46 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; | 46 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; |
47 virtual bool IsPanelAlwaysOnTop() const OVERRIDE; | 47 virtual bool IsPanelAlwaysOnTop() const OVERRIDE; |
48 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; | 48 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
| 49 virtual void EnableResizeByMouse(bool enable) OVERRIDE; |
49 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; | 50 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; |
50 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) OVERRIDE; | 51 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) OVERRIDE; |
51 virtual void PanelExpansionStateChanging( | 52 virtual void PanelExpansionStateChanging( |
52 Panel::ExpansionState old_state, | 53 Panel::ExpansionState old_state, |
53 Panel::ExpansionState new_state) OVERRIDE; | 54 Panel::ExpansionState new_state) OVERRIDE; |
54 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; | 55 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; |
55 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; | 56 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; |
56 | 57 |
57 // These sizes are in screen coordinates. | 58 // These sizes are in screen coordinates. |
58 virtual gfx::Size WindowSizeFromContentSize( | 59 virtual gfx::Size WindowSizeFromContentSize( |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 107 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
107 NSInteger attention_request_id_; // identifier from requestUserAttention. | 108 NSInteger attention_request_id_; // identifier from requestUserAttention. |
108 | 109 |
109 // Indicates how the window corner should be rendered, rounded or not. | 110 // Indicates how the window corner should be rendered, rounded or not. |
110 panel::CornerStyle corner_style_; | 111 panel::CornerStyle corner_style_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); | 113 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); |
113 }; | 114 }; |
114 | 115 |
115 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ | 116 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ |
OLD | NEW |