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 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" | 5 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 int OpaqueBrowserFrameView::GetThemeBackgroundXInset() const { | 184 int OpaqueBrowserFrameView::GetThemeBackgroundXInset() const { |
185 return 0; | 185 return 0; |
186 } | 186 } |
187 | 187 |
188 void OpaqueBrowserFrameView::UpdateThrobber(bool running) { | 188 void OpaqueBrowserFrameView::UpdateThrobber(bool running) { |
189 if (window_icon_) | 189 if (window_icon_) |
190 window_icon_->Update(); | 190 window_icon_->Update(); |
191 } | 191 } |
192 | 192 |
193 gfx::Size OpaqueBrowserFrameView::GetMinimumSize() { | 193 gfx::Size OpaqueBrowserFrameView::GetMinimumSize() const { |
194 return layout_->GetMinimumSize(width()); | 194 return layout_->GetMinimumSize(width()); |
195 } | 195 } |
196 | 196 |
197 /////////////////////////////////////////////////////////////////////////////// | 197 /////////////////////////////////////////////////////////////////////////////// |
198 // OpaqueBrowserFrameView, views::NonClientFrameView implementation: | 198 // OpaqueBrowserFrameView, views::NonClientFrameView implementation: |
199 | 199 |
200 gfx::Rect OpaqueBrowserFrameView::GetBoundsForClientView() const { | 200 gfx::Rect OpaqueBrowserFrameView::GetBoundsForClientView() const { |
201 return layout_->client_view_bounds(); | 201 return layout_->client_view_bounds(); |
202 } | 202 } |
203 | 203 |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 | 896 |
897 int OpaqueBrowserFrameView::GetTopAreaHeight() const { | 897 int OpaqueBrowserFrameView::GetTopAreaHeight() const { |
898 gfx::ImageSkia* frame_image = GetFrameImage(); | 898 gfx::ImageSkia* frame_image = GetFrameImage(); |
899 int top_area_height = frame_image->height(); | 899 int top_area_height = frame_image->height(); |
900 if (browser_view()->IsTabStripVisible()) { | 900 if (browser_view()->IsTabStripVisible()) { |
901 top_area_height = std::max(top_area_height, | 901 top_area_height = std::max(top_area_height, |
902 GetBoundsForTabStrip(browser_view()->tabstrip()).bottom()); | 902 GetBoundsForTabStrip(browser_view()->tabstrip()).bottom()); |
903 } | 903 } |
904 return top_area_height; | 904 return top_area_height; |
905 } | 905 } |
OLD | NEW |