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/panels/panel_browser_frame_view.h" | 5 #include "chrome/browser/ui/panels/panel_browser_frame_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/themes/theme_service.h" | 10 #include "chrome/browser/themes/theme_service.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 PanelBrowserFrameView::~PanelBrowserFrameView() { | 320 PanelBrowserFrameView::~PanelBrowserFrameView() { |
321 } | 321 } |
322 | 322 |
323 gfx::Rect PanelBrowserFrameView::GetBoundsForTabStrip( | 323 gfx::Rect PanelBrowserFrameView::GetBoundsForTabStrip( |
324 views::View* tabstrip) const { | 324 views::View* tabstrip) const { |
325 // Panels never show a tab strip. | 325 // Panels never show a tab strip. |
326 NOTREACHED(); | 326 NOTREACHED(); |
327 return gfx::Rect(); | 327 return gfx::Rect(); |
328 } | 328 } |
329 | 329 |
330 int PanelBrowserFrameView::GetHorizontalTabStripVerticalOffset( | 330 BrowserNonClientFrameView::TabStripInsets |
| 331 PanelBrowserFrameView::GetTabStripInsets( |
331 bool restored) const { | 332 bool restored) const { |
332 // This is not needed since we do not show tab strip for the panel. | 333 // This is not needed since we do not show tab strip for the panel. |
333 return 0; | 334 return TabStripInsets(); |
334 } | 335 } |
335 | 336 |
336 void PanelBrowserFrameView::UpdateThrobber(bool running) { | 337 void PanelBrowserFrameView::UpdateThrobber(bool running) { |
337 // Tells the title icon to update the throbber when we need to show the | 338 // Tells the title icon to update the throbber when we need to show the |
338 // animation to indicate we're still loading. | 339 // animation to indicate we're still loading. |
339 title_icon_->Update(); | 340 title_icon_->Update(); |
340 } | 341 } |
341 | 342 |
342 gfx::Rect PanelBrowserFrameView::GetBoundsForClientView() const { | 343 gfx::Rect PanelBrowserFrameView::GetBoundsForClientView() const { |
343 return client_view_bounds_; | 344 return client_view_bounds_; |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 } | 799 } |
799 | 800 |
800 bool PanelBrowserFrameView::CanResize() const { | 801 bool PanelBrowserFrameView::CanResize() const { |
801 return panel_browser_view_->panel()->CanResizeByMouse() != | 802 return panel_browser_view_->panel()->CanResizeByMouse() != |
802 panel::NOT_RESIZABLE; | 803 panel::NOT_RESIZABLE; |
803 } | 804 } |
804 | 805 |
805 bool PanelBrowserFrameView::IsShowingTitlebarOnly() const { | 806 bool PanelBrowserFrameView::IsShowingTitlebarOnly() const { |
806 return height() <= panel::kTitlebarHeight; | 807 return height() <= panel::kTitlebarHeight; |
807 } | 808 } |
OLD | NEW |