| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual void PanelPaste() OVERRIDE; | 48 virtual void PanelPaste() OVERRIDE; |
| 49 virtual void DrawAttention() OVERRIDE; | 49 virtual void DrawAttention() OVERRIDE; |
| 50 virtual bool IsDrawingAttention() const OVERRIDE; | 50 virtual bool IsDrawingAttention() const OVERRIDE; |
| 51 virtual bool PreHandlePanelKeyboardEvent( | 51 virtual bool PreHandlePanelKeyboardEvent( |
| 52 const NativeWebKeyboardEvent& event, | 52 const NativeWebKeyboardEvent& event, |
| 53 bool* is_keyboard_shortcut) OVERRIDE; | 53 bool* is_keyboard_shortcut) OVERRIDE; |
| 54 virtual void HandlePanelKeyboardEvent( | 54 virtual void HandlePanelKeyboardEvent( |
| 55 const NativeWebKeyboardEvent& event) OVERRIDE; | 55 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 56 virtual Browser* GetPanelBrowser() const OVERRIDE; | 56 virtual Browser* GetPanelBrowser() const OVERRIDE; |
| 57 virtual void DestroyPanelBrowser() OVERRIDE; | 57 virtual void DestroyPanelBrowser() OVERRIDE; |
| 58 virtual gfx::Size GetIconifiedSize() const OVERRIDE; |
| 59 virtual void EnsureFullyVisible() OVERRIDE; |
| 60 virtual void UpdatePanelIconInDesktopBar(PanelIconState state) OVERRIDE; |
| 58 | 61 |
| 59 // These sizes are in screen coordinates. | 62 // These sizes are in screen coordinates. |
| 60 virtual gfx::Size WindowSizeFromContentSize( | 63 virtual gfx::Size WindowSizeFromContentSize( |
| 61 const gfx::Size& content_size) const OVERRIDE; | 64 const gfx::Size& content_size) const OVERRIDE; |
| 62 virtual gfx::Size ContentSizeFromWindowSize( | 65 virtual gfx::Size ContentSizeFromWindowSize( |
| 63 const gfx::Size& window_size) const OVERRIDE; | 66 const gfx::Size& window_size) const OVERRIDE; |
| 64 virtual int TitleOnlyHeight() const OVERRIDE; | 67 virtual int TitleOnlyHeight() const OVERRIDE; |
| 65 | 68 |
| 66 // Overridden from TabStripModelObserver. | 69 // Overridden from TabStripModelObserver. |
| 67 virtual void TabInsertedAt(TabContentsWrapper* contents, | 70 virtual void TabInsertedAt(TabContentsWrapper* contents, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 gfx::Rect bounds_; | 105 gfx::Rect bounds_; |
| 103 | 106 |
| 104 PanelWindowControllerCocoa* controller_; // Weak, owns us. | 107 PanelWindowControllerCocoa* controller_; // Weak, owns us. |
| 105 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 108 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
| 106 bool has_find_bar_; // Find bar should only be created once per panel. | 109 bool has_find_bar_; // Find bar should only be created once per panel. |
| 107 | 110 |
| 108 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 111 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); |
| 109 }; | 112 }; |
| 110 | 113 |
| 111 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 114 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |