| 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 "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // views::ButtonListener overrides: | 61 // views::ButtonListener overrides: |
| 62 virtual void ButtonPressed(views::Button* sender, | 62 virtual void ButtonPressed(views::Button* sender, |
| 63 const ui::Event& event) OVERRIDE; | 63 const ui::Event& event) OVERRIDE; |
| 64 | 64 |
| 65 // Overridden from chrome::TabIconViewModel: | 65 // Overridden from chrome::TabIconViewModel: |
| 66 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; | 66 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; |
| 67 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; | 67 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, WindowHeader); | 70 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, WindowHeader); |
| 71 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, ImmersiveMode); |
| 71 | 72 |
| 72 // Distance between top of window and client area. | 73 // Distance between top of window and client area. |
| 73 int NonClientTopBorderHeight(bool force_restored) const; | 74 int NonClientTopBorderHeight(bool force_restored) const; |
| 74 | 75 |
| 75 // Returns true if we should use a short header, such as for popup windows. | 76 // Returns true if we should use a short header, such as for popup windows. |
| 76 bool UseShortHeader() const; | 77 bool UseShortHeader() const; |
| 77 | 78 |
| 78 // Layout the incognito icon. | 79 // Layout the incognito icon. |
| 79 void LayoutAvatar(); | 80 void LayoutAvatar(); |
| 80 | 81 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 105 scoped_ptr<ash::FramePainter> frame_painter_; | 106 scoped_ptr<ash::FramePainter> frame_painter_; |
| 106 | 107 |
| 107 // If true the |size_button_| minimizes, otherwise it toggles between | 108 // If true the |size_button_| minimizes, otherwise it toggles between |
| 108 // maximized and restored. | 109 // maximized and restored. |
| 109 bool size_button_minimizes_; | 110 bool size_button_minimizes_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); | 112 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 #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 |