| 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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/shell_observer.h" | 10 #include "ash/shell_observer.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 void OnPaint(gfx::Canvas* canvas) override; | 50 void OnPaint(gfx::Canvas* canvas) override; |
| 51 void Layout() override; | 51 void Layout() override; |
| 52 const char* GetClassName() const override; | 52 const char* GetClassName() const override; |
| 53 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | 53 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 54 gfx::Size GetMinimumSize() const override; | 54 gfx::Size GetMinimumSize() const override; |
| 55 void ChildPreferredSizeChanged(views::View* child) override; | 55 void ChildPreferredSizeChanged(views::View* child) override; |
| 56 | 56 |
| 57 // ash::ShellObserver: | 57 // ash::ShellObserver: |
| 58 void OnOverviewModeStarting() override; | 58 void OnOverviewModeStarting() override; |
| 59 void OnOverviewModeEnded() override; | 59 void OnOverviewModeEnded() override; |
| 60 void OnMaximizeModeStarted() override; | 60 void OnTabletModeStarted() override; |
| 61 void OnMaximizeModeEnded() override; | 61 void OnTabletModeEnded() override; |
| 62 | 62 |
| 63 // TabIconViewModel: | 63 // TabIconViewModel: |
| 64 bool ShouldTabIconViewAnimate() const override; | 64 bool ShouldTabIconViewAnimate() const override; |
| 65 gfx::ImageSkia GetFaviconForTabIconView() override; | 65 gfx::ImageSkia GetFaviconForTabIconView() override; |
| 66 | 66 |
| 67 protected: | 67 protected: |
| 68 // BrowserNonClientFrameView: | 68 // BrowserNonClientFrameView: |
| 69 void UpdateProfileIcons() override; | 69 void UpdateProfileIcons() override; |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, WindowHeader); | 72 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, WindowHeader); |
| 73 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, | 73 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, |
| 74 NonImmersiveFullscreen); | 74 NonImmersiveFullscreen); |
| 75 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, | 75 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, |
| 76 ImmersiveFullscreen); | 76 ImmersiveFullscreen); |
| 77 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, | 77 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, |
| 78 ToggleMaximizeModeRelayout); | 78 ToggleTabletModeRelayout); |
| 79 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, | 79 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, |
| 80 AvatarDisplayOnTeleportedWindow); | 80 AvatarDisplayOnTeleportedWindow); |
| 81 friend class BrowserHeaderPainterAsh; | 81 friend class BrowserHeaderPainterAsh; |
| 82 | 82 |
| 83 // Distance between the left edge of the NonClientFrameView and the tab strip. | 83 // Distance between the left edge of the NonClientFrameView and the tab strip. |
| 84 int GetTabStripLeftInset() const; | 84 int GetTabStripLeftInset() const; |
| 85 | 85 |
| 86 // Distance between the right edge of the NonClientFrameView and the tab | 86 // Distance between the right edge of the NonClientFrameView and the tab |
| 87 // strip. | 87 // strip. |
| 88 int GetTabStripRightInset() const; | 88 int GetTabStripRightInset() const; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 106 // For popups, the window icon. | 106 // For popups, the window icon. |
| 107 TabIconView* window_icon_; | 107 TabIconView* window_icon_; |
| 108 | 108 |
| 109 // Helper class for painting the header. | 109 // Helper class for painting the header. |
| 110 std::unique_ptr<ash::HeaderPainter> header_painter_; | 110 std::unique_ptr<ash::HeaderPainter> header_painter_; |
| 111 | 111 |
| 112 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); | 112 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 115 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| OLD | NEW |