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_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/ui/views/frame/browser_frame.h" | 9 #include "chrome/browser/ui/views/frame/browser_frame.h" |
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 public content::NotificationObserver, | 26 public content::NotificationObserver, |
27 public views::ButtonListener, | 27 public views::ButtonListener, |
28 public chrome::TabIconViewModel { | 28 public chrome::TabIconViewModel { |
29 public: | 29 public: |
30 // Constructs a non-client view for an BrowserFrame. | 30 // Constructs a non-client view for an BrowserFrame. |
31 OpaqueBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); | 31 OpaqueBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
32 virtual ~OpaqueBrowserFrameView(); | 32 virtual ~OpaqueBrowserFrameView(); |
33 | 33 |
34 // Overridden from BrowserNonClientFrameView: | 34 // Overridden from BrowserNonClientFrameView: |
35 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; | 35 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; |
36 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; | 36 virtual TabStripInsets GetTabStripInsets(bool restored) const OVERRIDE; |
37 virtual void UpdateThrobber(bool running) OVERRIDE; | 37 virtual void UpdateThrobber(bool running) OVERRIDE; |
38 virtual gfx::Size GetMinimumSize() OVERRIDE; | 38 virtual gfx::Size GetMinimumSize() OVERRIDE; |
39 | 39 |
40 protected: | 40 protected: |
41 views::ImageButton* minimize_button() const { return minimize_button_; } | 41 views::ImageButton* minimize_button() const { return minimize_button_; } |
42 views::ImageButton* maximize_button() const { return maximize_button_; } | 42 views::ImageButton* maximize_button() const { return maximize_button_; } |
43 views::ImageButton* restore_button() const { return restore_button_; } | 43 views::ImageButton* restore_button() const { return restore_button_; } |
44 views::ImageButton* close_button() const { return close_button_; } | 44 views::ImageButton* close_button() const { return close_button_; } |
45 | 45 |
46 // Used to allow subclasses to reserve height for other components they | 46 // Used to allow subclasses to reserve height for other components they |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 content::NotificationRegistrar registrar_; | 168 content::NotificationRegistrar registrar_; |
169 | 169 |
170 // Background painter for the window frame. | 170 // Background painter for the window frame. |
171 scoped_ptr<views::FrameBackground> frame_background_; | 171 scoped_ptr<views::FrameBackground> frame_background_; |
172 | 172 |
173 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 173 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
174 }; | 174 }; |
175 | 175 |
176 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 176 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |