| 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 "base/i18n/time_formatting.h" | 5 #include "base/i18n/time_formatting.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "chrome/browser/extensions/extension_service.h" | 7 #include "chrome/browser/extensions/extension_service.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
| 10 #include "chrome/browser/ui/panels/base_panel_browser_test.h" | 10 #include "chrome/browser/ui/panels/base_panel_browser_test.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 gfx::Rect GetViewBounds(Panel* panel) const { | 42 gfx::Rect GetViewBounds(Panel* panel) const { |
| 43 return GetBrowserView(panel)->GetBounds(); | 43 return GetBrowserView(panel)->GetBounds(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void SetViewBounds(Panel* panel, const gfx::Rect& rect) const { | 46 void SetViewBounds(Panel* panel, const gfx::Rect& rect) const { |
| 47 return GetBrowserView(panel)->SetPanelBounds(rect); | 47 return GetBrowserView(panel)->SetPanelBounds(rect); |
| 48 } | 48 } |
| 49 | 49 |
| 50 gfx::NativeWindow GetNativeWindow(Panel* panel) const { | 50 gfx::NativeWindow GetNativeWindow(Panel* panel) const { |
| 51 return GetBrowserView(panel)->GetNativeHandle(); | 51 return GetBrowserView(panel)->GetNativeWindow(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 PanelBoundsAnimation* GetBoundsAnimator(Panel* panel) const { | 54 PanelBoundsAnimation* GetBoundsAnimator(Panel* panel) const { |
| 55 return GetBrowserView(panel)->bounds_animator_.get(); | 55 return GetBrowserView(panel)->bounds_animator_.get(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 int GetTitlebarHeight(Panel* panel) const { | 58 int GetTitlebarHeight(Panel* panel) const { |
| 59 PanelBrowserFrameView* frame_view = GetBrowserView(panel)->GetFrameView(); | 59 PanelBrowserFrameView* frame_view = GetBrowserView(panel)->GetFrameView(); |
| 60 return frame_view->NonClientTopBorderHeight() - | 60 return frame_view->NonClientTopBorderHeight() - |
| 61 frame_view->NonClientBorderThickness(); | 61 frame_view->NonClientBorderThickness(); |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, | 478 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, |
| 479 MinimizeAndRestoreOnAutoHideTaskBar) { | 479 MinimizeAndRestoreOnAutoHideTaskBar) { |
| 480 TestMinimizeAndRestore(true); | 480 TestMinimizeAndRestore(true); |
| 481 } | 481 } |
| 482 | 482 |
| 483 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, | 483 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, |
| 484 ChangeAutoHideTaskBarThickness) { | 484 ChangeAutoHideTaskBarThickness) { |
| 485 TestChangeAutoHideTaskBarThickness(); | 485 TestChangeAutoHideTaskBarThickness(); |
| 486 } | 486 } |
| 487 #endif | 487 #endif |
| OLD | NEW |