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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, | 70 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, |
71 ImmersiveFullscreen); | 71 ImmersiveFullscreen); |
72 | 72 |
73 // Distance between the left edge of the NonClientFrameView and the tab strip. | 73 // Distance between the left edge of the NonClientFrameView and the tab strip. |
74 int GetTabStripLeftInset() const; | 74 int GetTabStripLeftInset() const; |
75 | 75 |
76 // Distance between the right edge of the NonClientFrameView and the tab | 76 // Distance between the right edge of the NonClientFrameView and the tab |
77 // strip. | 77 // strip. |
78 int GetTabStripRightInset() const; | 78 int GetTabStripRightInset() const; |
79 | 79 |
80 // Distance between top of window and client area. | |
81 int NonClientTopBorderHeight() const; | |
82 | |
83 // Returns true if we should use a short header, such as for popup windows. | 80 // Returns true if we should use a short header, such as for popup windows. |
84 bool UseShortHeader() const; | 81 bool UseShortHeader() const; |
85 | 82 |
86 // Returns true if we should use a super short header with light bars instead | 83 // Returns true if we should use a super short header with light bars instead |
87 // of regular tabs. This header is used in immersive fullscreen when the | 84 // of regular tabs. This header is used in immersive fullscreen when the |
88 // top-of-window views are not revealed. | 85 // top-of-window views are not revealed. |
89 bool UseImmersiveLightbarHeaderStyle() const; | 86 bool UseImmersiveLightbarHeaderStyle() const; |
90 | 87 |
91 // Layout the incognito icon. | 88 // Layout the incognito icon. |
92 void LayoutAvatar(); | 89 void LayoutAvatar(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 scoped_ptr<ash::HeaderPainter> header_painter_; | 121 scoped_ptr<ash::HeaderPainter> header_painter_; |
125 | 122 |
126 // Updates the hittest bounds overrides based on the window show type. | 123 // Updates the hittest bounds overrides based on the window show type. |
127 scoped_ptr<ash::FrameBorderHitTestController> | 124 scoped_ptr<ash::FrameBorderHitTestController> |
128 frame_border_hit_test_controller_; | 125 frame_border_hit_test_controller_; |
129 | 126 |
130 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); | 127 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); |
131 }; | 128 }; |
132 | 129 |
133 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
OLD | NEW |