| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/ui/view_ids.h" | 10 #include "chrome/browser/ui/view_ids.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // Paint various sub-components of this view. The *FrameBorder() functions | 140 // Paint various sub-components of this view. The *FrameBorder() functions |
| 141 // also paint the background of the titlebar area, since the top frame border | 141 // also paint the background of the titlebar area, since the top frame border |
| 142 // and titlebar background are a contiguous component. | 142 // and titlebar background are a contiguous component. |
| 143 void PaintRestoredFrameBorder(gfx::Canvas* canvas) const; | 143 void PaintRestoredFrameBorder(gfx::Canvas* canvas) const; |
| 144 void PaintMaximizedFrameBorder(gfx::Canvas* canvas) const; | 144 void PaintMaximizedFrameBorder(gfx::Canvas* canvas) const; |
| 145 void PaintToolbarBackground(gfx::Canvas* canvas) const; | 145 void PaintToolbarBackground(gfx::Canvas* canvas) const; |
| 146 void PaintClientEdge(gfx::Canvas* canvas) const; | 146 void PaintClientEdge(gfx::Canvas* canvas) const; |
| 147 void FillClientEdgeRects(int x, | 147 void FillClientEdgeRects(int x, |
| 148 int y, | 148 int y, |
| 149 int right, | 149 int w, |
| 150 int bottom, | 150 int h, |
| 151 SkColor color, | 151 SkColor color, |
| 152 gfx::Canvas* canvas) const; | 152 gfx::Canvas* canvas) const; |
| 153 | 153 |
| 154 // Our layout manager also calculates various bounds. | 154 // Our layout manager also calculates various bounds. |
| 155 OpaqueBrowserFrameViewLayout* layout_; | 155 OpaqueBrowserFrameViewLayout* layout_; |
| 156 | 156 |
| 157 // Window controls. | 157 // Window controls. |
| 158 views::ImageButton* minimize_button_; | 158 views::ImageButton* minimize_button_; |
| 159 views::ImageButton* maximize_button_; | 159 views::ImageButton* maximize_button_; |
| 160 views::ImageButton* restore_button_; | 160 views::ImageButton* restore_button_; |
| 161 views::ImageButton* close_button_; | 161 views::ImageButton* close_button_; |
| 162 | 162 |
| 163 // The window icon and title. | 163 // The window icon and title. |
| 164 TabIconView* window_icon_; | 164 TabIconView* window_icon_; |
| 165 views::Label* window_title_; | 165 views::Label* window_title_; |
| 166 | 166 |
| 167 // Background painter for the window frame. | 167 // Background painter for the window frame. |
| 168 scoped_ptr<views::FrameBackground> frame_background_; | 168 scoped_ptr<views::FrameBackground> frame_background_; |
| 169 | 169 |
| 170 // Observer that handles platform dependent configuration. | 170 // Observer that handles platform dependent configuration. |
| 171 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; | 171 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; |
| 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 |