| 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; | |
| 50 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; | 49 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; |
| 51 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) OVERRIDE; | 50 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) OVERRIDE; |
| 52 virtual void PanelExpansionStateChanging( | 51 virtual void PanelExpansionStateChanging( |
| 53 Panel::ExpansionState old_state, | 52 Panel::ExpansionState old_state, |
| 54 Panel::ExpansionState new_state) OVERRIDE; | 53 Panel::ExpansionState new_state) OVERRIDE; |
| 55 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; | 54 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; |
| 56 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; | 55 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; |
| 57 | 56 |
| 58 // These sizes are in screen coordinates. | 57 // These sizes are in screen coordinates. |
| 59 virtual gfx::Size WindowSizeFromContentSize( | 58 virtual gfx::Size WindowSizeFromContentSize( |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 106 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
| 108 NSInteger attention_request_id_; // identifier from requestUserAttention. | 107 NSInteger attention_request_id_; // identifier from requestUserAttention. |
| 109 | 108 |
| 110 // Indicates how the window corner should be rendered, rounded or not. | 109 // Indicates how the window corner should be rendered, rounded or not. |
| 111 panel::CornerStyle corner_style_; | 110 panel::CornerStyle corner_style_; |
| 112 | 111 |
| 113 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); | 112 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); |
| 114 }; | 113 }; |
| 115 | 114 |
| 116 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ | 115 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ |
| OLD | NEW |