| 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_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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 Panel::ExpansionState new_state) OVERRIDE; | 70 Panel::ExpansionState new_state) OVERRIDE; |
| 71 | 71 |
| 72 // These sizes are in screen coordinates. | 72 // These sizes are in screen coordinates. |
| 73 virtual gfx::Size WindowSizeFromContentSize( | 73 virtual gfx::Size WindowSizeFromContentSize( |
| 74 const gfx::Size& content_size) const OVERRIDE; | 74 const gfx::Size& content_size) const OVERRIDE; |
| 75 virtual gfx::Size ContentSizeFromWindowSize( | 75 virtual gfx::Size ContentSizeFromWindowSize( |
| 76 const gfx::Size& window_size) const OVERRIDE; | 76 const gfx::Size& window_size) const OVERRIDE; |
| 77 virtual int TitleOnlyHeight() const OVERRIDE; | 77 virtual int TitleOnlyHeight() const OVERRIDE; |
| 78 | 78 |
| 79 // Overridden from TabStripModelObserver. | 79 // Overridden from TabStripModelObserver. |
| 80 virtual void TabInsertedAt(TabContentsWrapper* contents, | 80 virtual void TabInsertedAt(TabContents* contents, |
| 81 int index, | 81 int index, |
| 82 bool foreground) OVERRIDE; | 82 bool foreground) OVERRIDE; |
| 83 virtual void TabDetachedAt(TabContentsWrapper* contents, int index) OVERRIDE; | 83 virtual void TabDetachedAt(TabContents* contents, int index) OVERRIDE; |
| 84 | 84 |
| 85 // Overridden from NotificationObserver. | 85 // Overridden from NotificationObserver. |
| 86 virtual void Observe(int type, | 86 virtual void Observe(int type, |
| 87 const content::NotificationSource& source, | 87 const content::NotificationSource& source, |
| 88 const content::NotificationDetails& details) OVERRIDE; | 88 const content::NotificationDetails& details) OVERRIDE; |
| 89 | 89 |
| 90 // Overridden from NativePanelCocoa. | 90 // Overridden from NativePanelCocoa. |
| 91 virtual Panel* panel() const OVERRIDE; | 91 virtual Panel* panel() const OVERRIDE; |
| 92 virtual void DidCloseNativeWindow() OVERRIDE; | 92 virtual void DidCloseNativeWindow() OVERRIDE; |
| 93 | 93 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 121 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 121 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
| 122 bool has_find_bar_; // Find bar should only be created once per panel. | 122 bool has_find_bar_; // Find bar should only be created once per panel. |
| 123 NSInteger attention_request_id_; // identifier from requestUserAttention. | 123 NSInteger attention_request_id_; // identifier from requestUserAttention. |
| 124 | 124 |
| 125 content::NotificationRegistrar registrar_; | 125 content::NotificationRegistrar registrar_; |
| 126 | 126 |
| 127 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 127 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 130 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ |
| OLD | NEW |