| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 MINIMIZED | 35 MINIMIZED |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 virtual ~Panel(); | 38 virtual ~Panel(); |
| 39 | 39 |
| 40 // Returns the PanelManager associated with this panel. | 40 // Returns the PanelManager associated with this panel. |
| 41 PanelManager* manager() const; | 41 PanelManager* manager() const; |
| 42 | 42 |
| 43 void SetExpansionState(ExpansionState new_expansion_state); | 43 void SetExpansionState(ExpansionState new_expansion_state); |
| 44 | 44 |
| 45 bool ShouldBringUpTitleBar(int mouse_x, int mouse_y) const; | 45 bool ShouldBringUpTitlebar(int mouse_x, int mouse_y) const; |
| 46 | 46 |
| 47 bool IsDrawingAttention() const; | 47 bool IsDrawingAttention() const; |
| 48 | 48 |
| 49 // BrowserWindow overrides. | 49 // BrowserWindow overrides. |
| 50 virtual void Show() OVERRIDE; | 50 virtual void Show() OVERRIDE; |
| 51 virtual void ShowInactive() OVERRIDE; | 51 virtual void ShowInactive() OVERRIDE; |
| 52 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 52 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 53 virtual void Close() OVERRIDE; | 53 virtual void Close() OVERRIDE; |
| 54 virtual void Activate() OVERRIDE; | 54 virtual void Activate() OVERRIDE; |
| 55 virtual void Deactivate() OVERRIDE; | 55 virtual void Deactivate() OVERRIDE; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Platform specifc implementation for panels. It'd be one of | 180 // Platform specifc implementation for panels. It'd be one of |
| 181 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. | 181 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. |
| 182 NativePanel* native_panel_; // Weak, owns us. | 182 NativePanel* native_panel_; // Weak, owns us. |
| 183 | 183 |
| 184 ExpansionState expansion_state_; | 184 ExpansionState expansion_state_; |
| 185 | 185 |
| 186 DISALLOW_COPY_AND_ASSIGN(Panel); | 186 DISALLOW_COPY_AND_ASSIGN(Panel); |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 189 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
| OLD | NEW |