| 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_CHROMEOS_FRAME_PANEL_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_PANEL_BROWSER_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FRAME_PANEL_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FRAME_PANEL_BROWSER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/x11_util.h" | 9 #include "app/x11_util.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 virtual void SetBounds(const gfx::Rect& bounds); | 30 virtual void SetBounds(const gfx::Rect& bounds); |
| 31 virtual void Close(); | 31 virtual void Close(); |
| 32 virtual void UpdateTitleBar(); | 32 virtual void UpdateTitleBar(); |
| 33 virtual void ActivationChanged(bool activated); | 33 virtual void ActivationChanged(bool activated); |
| 34 virtual void SetCreatorView(PanelBrowserView* creator); | 34 virtual void SetCreatorView(PanelBrowserView* creator); |
| 35 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const; | 35 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const; |
| 36 | 36 |
| 37 // PanelController::Delegate overrides | 37 // PanelController::Delegate overrides |
| 38 virtual string16 GetPanelTitle(); | 38 virtual string16 GetPanelTitle(); |
| 39 virtual SkBitmap GetPanelIcon(); | 39 virtual SkBitmap GetPanelIcon(); |
| 40 virtual bool CanClosePanel(); |
| 40 virtual void ClosePanel(); | 41 virtual void ClosePanel(); |
| 41 virtual void OnPanelStateChanged(PanelController::State state) {} | 42 virtual void OnPanelStateChanged(PanelController::State state) {} |
| 42 | 43 |
| 43 private: | 44 private: |
| 44 // Enforces the min, max, and default bounds. | 45 // Enforces the min, max, and default bounds. |
| 45 void LimitBounds(gfx::Rect* bounds) const; | 46 void LimitBounds(gfx::Rect* bounds) const; |
| 46 | 47 |
| 47 // Controls interactions with the window manager for popup panels. | 48 // Controls interactions with the window manager for popup panels. |
| 48 scoped_ptr<chromeos::PanelController> panel_controller_; | 49 scoped_ptr<chromeos::PanelController> panel_controller_; |
| 49 | 50 |
| 50 // X id for the content window of the panel that created this | 51 // X id for the content window of the panel that created this |
| 51 // panel. This tells ChromeOS that it should be created next to the | 52 // panel. This tells ChromeOS that it should be created next to the |
| 52 // content window of this panel. | 53 // content window of this panel. |
| 53 XID creator_xid_; | 54 XID creator_xid_; |
| 54 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 55 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace chromeos | 58 } // namespace chromeos |
| 58 | 59 |
| 59 #endif // CHROME_BROWSER_CHROMEOS_FRAME_PANEL_BROWSER_VIEW_H_ | 60 #endif // CHROME_BROWSER_CHROMEOS_FRAME_PANEL_BROWSER_VIEW_H_ |
| OLD | NEW |