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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // Paints the header background when the frame is in immersive fullscreen and | 97 // Paints the header background when the frame is in immersive fullscreen and |
98 // tab light bar is visible. | 98 // tab light bar is visible. |
99 void PaintImmersiveLightbarStyleHeader(gfx::Canvas* canvas); | 99 void PaintImmersiveLightbarStyleHeader(gfx::Canvas* canvas); |
100 | 100 |
101 void PaintToolbarBackground(gfx::Canvas* canvas); | 101 void PaintToolbarBackground(gfx::Canvas* canvas); |
102 | 102 |
103 // Windows without a toolbar need to draw their own line under the header, | 103 // Windows without a toolbar need to draw their own line under the header, |
104 // above the content area. | 104 // above the content area. |
105 void PaintContentEdge(gfx::Canvas* canvas); | 105 void PaintContentEdge(gfx::Canvas* canvas); |
106 | 106 |
107 // Returns the id of the header frame image based on the browser type, | 107 // Sets |frame_image_id| and |frame_image_overlay_id| to the ids of the header |
108 // activation state and incognito mode. | 108 // frame image and the header frame overlay image respectively. |
109 int GetThemeFrameImageId() const; | 109 // |frame_overlay_image_id| is set to 0 if no overlay image should be used. |
110 | 110 void GetFrameImageIds(int* frame_image_id, |
111 // Returns the id of the header frame overlay image based on the activation | 111 int* frame_overlay_image_id) const; |
112 // state and incognito mode. | |
113 // Returns 0 if no overlay image should be used. | |
114 int GetThemeFrameOverlayImageId() const; | |
115 | 112 |
116 // View which contains the window controls. | 113 // View which contains the window controls. |
117 ash::FrameCaptionButtonContainerView* caption_button_container_; | 114 ash::FrameCaptionButtonContainerView* caption_button_container_; |
118 | 115 |
119 // For popups, the window icon. | 116 // For popups, the window icon. |
120 TabIconView* window_icon_; | 117 TabIconView* window_icon_; |
121 | 118 |
122 // Helper class for painting the header. | 119 // Helper class for painting the header. |
123 scoped_ptr<ash::HeaderPainter> header_painter_; | 120 scoped_ptr<ash::HeaderPainter> header_painter_; |
124 | 121 |
125 // Updates the hittest bounds overrides based on the window show type. | 122 // Updates the hittest bounds overrides based on the window show type. |
126 scoped_ptr<ash::FrameBorderHitTestController> | 123 scoped_ptr<ash::FrameBorderHitTestController> |
127 frame_border_hit_test_controller_; | 124 frame_border_hit_test_controller_; |
128 | 125 |
129 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); | 126 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); |
130 }; | 127 }; |
131 | 128 |
132 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 129 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
OLD | NEW |