OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 PanelBrowserView* GetBrowserView(Panel* panel) const { | 66 PanelBrowserView* GetBrowserView(Panel* panel) const { |
67 return static_cast<PanelBrowserView*>(panel->native_panel()); | 67 return static_cast<PanelBrowserView*>(panel->native_panel()); |
68 } | 68 } |
69 | 69 |
70 gfx::Rect GetViewBounds(Panel* panel) const { | 70 gfx::Rect GetViewBounds(Panel* panel) const { |
71 return GetBrowserView(panel)->GetBounds(); | 71 return GetBrowserView(panel)->GetBounds(); |
72 } | 72 } |
73 | 73 |
74 void SetViewBounds(Panel* panel, const gfx::Rect& rect) const { | 74 void SetViewBounds(Panel* panel, const gfx::Rect& rect) const { |
75 return GetBrowserView(panel)->SetPanelBounds(rect); | 75 return GetBrowserView(panel)->SetPanelBounds(rect, true); // use animation. |
76 } | 76 } |
77 | 77 |
78 gfx::NativeWindow GetNativeWindow(Panel* panel) const { | 78 gfx::NativeWindow GetNativeWindow(Panel* panel) const { |
79 return GetBrowserView(panel)->GetNativeHandle(); | 79 return GetBrowserView(panel)->GetNativeHandle(); |
80 } | 80 } |
81 | 81 |
82 ui::SlideAnimation* GetBoundsAnimator(Panel* panel) const { | 82 ui::SlideAnimation* GetBoundsAnimator(Panel* panel) const { |
83 return GetBrowserView(panel)->bounds_animator_.get(); | 83 return GetBrowserView(panel)->bounds_animator_.get(); |
84 } | 84 } |
85 | 85 |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 // TODO(jianli): Investigate why this fails on win trunk build. | 612 // TODO(jianli): Investigate why this fails on win trunk build. |
613 // http://crbug.com/102734 | 613 // http://crbug.com/102734 |
614 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, DISABLED_DrawAttention) { | 614 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, DISABLED_DrawAttention) { |
615 TestDrawAttention(); | 615 TestDrawAttention(); |
616 } | 616 } |
617 | 617 |
618 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, ChangeAutoHideTaskBarThickness) { | 618 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, ChangeAutoHideTaskBarThickness) { |
619 TestChangeAutoHideTaskBarThickness(); | 619 TestChangeAutoHideTaskBarThickness(); |
620 } | 620 } |
621 #endif | 621 #endif |
OLD | NEW |