OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" |
11 #include "chrome/browser/chromeos/frame/panel_controller.h" | 11 #include "chrome/browser/chromeos/frame/panel_controller.h" |
12 #include "chrome/browser/views/frame/browser_view.h" | 12 #include "chrome/browser/views/frame/browser_view.h" |
13 | 13 |
14 class Browser; | 14 class Browser; |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 class PanelController; | 18 class PanelController; |
19 | 19 |
20 // A browser view that implements Panel specific behavior. | 20 // A browser view that implements Panel specific behavior. |
21 // NOTE: This inherits from ::BrowserView in chrome/browser/views/frame/, | 21 // NOTE: This inherits from ::BrowserView in chrome/browser/views/frame/, |
22 // not chromeos::BrowserView in chrome/browser/chromeos/frame/. | 22 // not chromeos::BrowserView in chrome/browser/chromeos/frame/. |
23 class PanelBrowserView : public ::BrowserView, | 23 class PanelBrowserView : public ::BrowserView, |
24 public PanelController::Delegate { | 24 public PanelController::Delegate { |
25 public: | 25 public: |
26 explicit PanelBrowserView(Browser* browser); | 26 explicit PanelBrowserView(Browser* browser); |
27 | 27 |
28 // BrowserView overrides. | 28 // BrowserView overrides. |
29 virtual void Init(); | |
30 virtual void Show(); | 29 virtual void Show(); |
31 virtual void SetBounds(const gfx::Rect& bounds); | 30 virtual void SetBounds(const gfx::Rect& bounds); |
32 virtual void Close(); | 31 virtual void Close(); |
33 virtual void UpdateTitleBar(); | 32 virtual void UpdateTitleBar(); |
34 virtual void ActivationChanged(bool activated); | 33 virtual void ActivationChanged(bool activated); |
35 virtual void SetCreatorView(PanelBrowserView* creator); | 34 virtual void SetCreatorView(PanelBrowserView* creator); |
36 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const; | 35 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const; |
37 | 36 |
38 // PanelController::Delegate overrides | 37 // PanelController::Delegate overrides |
39 virtual string16 GetPanelTitle(); | 38 virtual string16 GetPanelTitle(); |
(...skipping 11 matching lines...) Expand all Loading... |
51 // X id for the content window of the panel that created this | 50 // X id for the content window of the panel that created this |
52 // panel. This tells ChromeOS that it should be created next to the | 51 // panel. This tells ChromeOS that it should be created next to the |
53 // content window of this panel. | 52 // content window of this panel. |
54 XID creator_xid_; | 53 XID creator_xid_; |
55 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 54 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
56 }; | 55 }; |
57 | 56 |
58 } // namespace chromeos | 57 } // namespace chromeos |
59 | 58 |
60 #endif // CHROME_BROWSER_CHROMEOS_FRAME_PANEL_BROWSER_VIEW_H_ | 59 #endif // CHROME_BROWSER_CHROMEOS_FRAME_PANEL_BROWSER_VIEW_H_ |
OLD | NEW |