Chromium Code Reviews| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 | 57 |
| 58 // These sizes are in screen coordinates. | 58 // These sizes are in screen coordinates. |
| 59 virtual gfx::Size WindowSizeFromContentSize( | 59 virtual gfx::Size WindowSizeFromContentSize( |
| 60 const gfx::Size& content_size) const OVERRIDE; | 60 const gfx::Size& content_size) const OVERRIDE; |
| 61 virtual gfx::Size ContentSizeFromWindowSize( | 61 virtual gfx::Size ContentSizeFromWindowSize( |
| 62 const gfx::Size& window_size) const OVERRIDE; | 62 const gfx::Size& window_size) const OVERRIDE; |
| 63 virtual int TitleOnlyHeight() const OVERRIDE; | 63 virtual int TitleOnlyHeight() const OVERRIDE; |
| 64 | 64 |
| 65 virtual void MinimizePanelBySystem() OVERRIDE; | 65 virtual void MinimizePanelBySystem() OVERRIDE; |
| 66 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; | 66 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; |
| 67 virtual void SetPanelHasShadow(bool has_shadow) OVERRIDE; | |
|
Dmitry Titov
2013/04/16 23:26:47
Naming: I think "ShowShadow(bool show)" could be s
jianli
2013/04/16 23:46:03
Done.
| |
| 67 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; | 68 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; |
| 68 | 69 |
| 69 Panel* panel() const; | 70 Panel* panel() const; |
| 70 void DidCloseNativeWindow(); | 71 void DidCloseNativeWindow(); |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 friend class CocoaNativePanelTesting; | 74 friend class CocoaNativePanelTesting; |
| 74 friend class PanelCocoaTest; | 75 friend class PanelCocoaTest; |
| 75 FRIEND_TEST_ALL_PREFIXES(PanelCocoaTest, CreateClose); | 76 FRIEND_TEST_ALL_PREFIXES(PanelCocoaTest, CreateClose); |
| 76 FRIEND_TEST_ALL_PREFIXES(PanelCocoaTest, NativeBounds); | 77 FRIEND_TEST_ALL_PREFIXES(PanelCocoaTest, NativeBounds); |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 100 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 101 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
| 101 NSInteger attention_request_id_; // identifier from requestUserAttention. | 102 NSInteger attention_request_id_; // identifier from requestUserAttention. |
| 102 | 103 |
| 103 // Indicates how the window corner should be rendered, rounded or not. | 104 // Indicates how the window corner should be rendered, rounded or not. |
| 104 panel::CornerStyle corner_style_; | 105 panel::CornerStyle corner_style_; |
| 105 | 106 |
| 106 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); | 107 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ | 110 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ |
| OLD | NEW |