| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 void OpaqueBrowserFrameView::UpdateWindowIcon() { | 279 void OpaqueBrowserFrameView::UpdateWindowIcon() { |
| 280 window_icon_->SchedulePaint(); | 280 window_icon_->SchedulePaint(); |
| 281 } | 281 } |
| 282 | 282 |
| 283 void OpaqueBrowserFrameView::UpdateWindowTitle() { | 283 void OpaqueBrowserFrameView::UpdateWindowTitle() { |
| 284 if (!frame()->IsFullscreen()) | 284 if (!frame()->IsFullscreen()) |
| 285 window_title_->SchedulePaint(); | 285 window_title_->SchedulePaint(); |
| 286 } | 286 } |
| 287 | 287 |
| 288 void OpaqueBrowserFrameView::SizeConstraintsChanged() { |
| 289 } |
| 290 |
| 288 /////////////////////////////////////////////////////////////////////////////// | 291 /////////////////////////////////////////////////////////////////////////////// |
| 289 // OpaqueBrowserFrameView, views::View overrides: | 292 // OpaqueBrowserFrameView, views::View overrides: |
| 290 | 293 |
| 291 void OpaqueBrowserFrameView::GetAccessibleState( | 294 void OpaqueBrowserFrameView::GetAccessibleState( |
| 292 ui::AXViewState* state) { | 295 ui::AXViewState* state) { |
| 293 state->role = ui::AX_ROLE_TITLE_BAR; | 296 state->role = ui::AX_ROLE_TITLE_BAR; |
| 294 } | 297 } |
| 295 | 298 |
| 296 /////////////////////////////////////////////////////////////////////////////// | 299 /////////////////////////////////////////////////////////////////////////////// |
| 297 // OpaqueBrowserFrameView, views::ButtonListener implementation: | 300 // OpaqueBrowserFrameView, views::ButtonListener implementation: |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 | 907 |
| 905 int OpaqueBrowserFrameView::GetTopAreaHeight() const { | 908 int OpaqueBrowserFrameView::GetTopAreaHeight() const { |
| 906 gfx::ImageSkia* frame_image = GetFrameImage(); | 909 gfx::ImageSkia* frame_image = GetFrameImage(); |
| 907 int top_area_height = frame_image->height(); | 910 int top_area_height = frame_image->height(); |
| 908 if (browser_view()->IsTabStripVisible()) { | 911 if (browser_view()->IsTabStripVisible()) { |
| 909 top_area_height = std::max(top_area_height, | 912 top_area_height = std::max(top_area_height, |
| 910 GetBoundsForTabStrip(browser_view()->tabstrip()).bottom()); | 913 GetBoundsForTabStrip(browser_view()->tabstrip()).bottom()); |
| 911 } | 914 } |
| 912 return top_area_height; | 915 return top_area_height; |
| 913 } | 916 } |
| OLD | NEW |