| 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 "ash/shell_observer.h" | 8 #include "ash/shell_observer.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 bool UseImmersiveLightbarHeaderStyle() const; | 90 bool UseImmersiveLightbarHeaderStyle() const; |
| 91 | 91 |
| 92 // Returns true if the header should be painted so that it looks the same as | 92 // Returns true if the header should be painted so that it looks the same as |
| 93 // the header used for packaged apps. Packaged apps use a different color | 93 // the header used for packaged apps. Packaged apps use a different color |
| 94 // scheme than browser windows. | 94 // scheme than browser windows. |
| 95 bool UsePackagedAppHeaderStyle() const; | 95 bool UsePackagedAppHeaderStyle() const; |
| 96 | 96 |
| 97 // Layout the incognito icon. | 97 // Layout the incognito icon. |
| 98 void LayoutAvatar(); | 98 void LayoutAvatar(); |
| 99 | 99 |
| 100 // Returns true if the specified hit_test type and point are within |
| 101 // the Avatar menu button. |
| 102 bool IsWithinAvatarMenuButton(const int hit_test, |
| 103 const gfx::Point& point) const; |
| 104 |
| 100 // Returns true if there is anything to paint. Some fullscreen windows do not | 105 // Returns true if there is anything to paint. Some fullscreen windows do not |
| 101 // need their frames painted. | 106 // need their frames painted. |
| 102 bool ShouldPaint() const; | 107 bool ShouldPaint() const; |
| 103 | 108 |
| 104 // Paints the header background when the frame is in immersive fullscreen and | 109 // Paints the header background when the frame is in immersive fullscreen and |
| 105 // tab light bar is visible. | 110 // tab light bar is visible. |
| 106 void PaintImmersiveLightbarStyleHeader(gfx::Canvas* canvas); | 111 void PaintImmersiveLightbarStyleHeader(gfx::Canvas* canvas); |
| 107 | 112 |
| 108 void PaintToolbarBackground(gfx::Canvas* canvas); | 113 void PaintToolbarBackground(gfx::Canvas* canvas); |
| 109 | 114 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 121 scoped_ptr<ash::HeaderPainter> header_painter_; | 126 scoped_ptr<ash::HeaderPainter> header_painter_; |
| 122 | 127 |
| 123 // Updates the hittest bounds overrides based on the window show type. | 128 // Updates the hittest bounds overrides based on the window show type. |
| 124 scoped_ptr<ash::FrameBorderHitTestController> | 129 scoped_ptr<ash::FrameBorderHitTestController> |
| 125 frame_border_hit_test_controller_; | 130 frame_border_hit_test_controller_; |
| 126 | 131 |
| 127 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); | 132 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); |
| 128 }; | 133 }; |
| 129 | 134 |
| 130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 135 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| OLD | NEW |