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 which should be |
109 int GetThemeFrameImageId() const; | 109 // used for tabbed browser windows. |frame_overlay_image_id| is set to 0 if no |
| 110 // overlay image should be used. |
| 111 void GetFrameImageIdsForTabbedBrowser(int* frame_image_id, |
| 112 int* frame_overlay_image_id) const; |
110 | 113 |
111 // Returns the id of the header frame overlay image based on the activation | 114 |
112 // state and incognito mode. | 115 // Returns the id of the header frame image which should be used for browser |
113 // Returns 0 if no overlay image should be used. | 116 // popups. Browser popups are not themed and do not use a frame overlay image. |
114 int GetThemeFrameOverlayImageId() const; | 117 int GetFrameImageIdForBrowserPopup() const; |
| 118 |
| 119 // Returns the id of the header frame image which should be used for hosted |
| 120 // apps. Hosted apps are not themed and do not use a frame overlay image. |
| 121 int GetFrameImageIdForHostedApp() const; |
115 | 122 |
116 // View which contains the window controls. | 123 // View which contains the window controls. |
117 ash::FrameCaptionButtonContainerView* caption_button_container_; | 124 ash::FrameCaptionButtonContainerView* caption_button_container_; |
118 | 125 |
119 // For popups, the window icon. | 126 // For popups, the window icon. |
120 TabIconView* window_icon_; | 127 TabIconView* window_icon_; |
121 | 128 |
122 // Helper class for painting the header. | 129 // Helper class for painting the header. |
123 scoped_ptr<ash::HeaderPainter> header_painter_; | 130 scoped_ptr<ash::HeaderPainter> header_painter_; |
124 | 131 |
125 // Updates the hittest bounds overrides based on the window show type. | 132 // Updates the hittest bounds overrides based on the window show type. |
126 scoped_ptr<ash::FrameBorderHitTestController> | 133 scoped_ptr<ash::FrameBorderHitTestController> |
127 frame_border_hit_test_controller_; | 134 frame_border_hit_test_controller_; |
128 | 135 |
129 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); | 136 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); |
130 }; | 137 }; |
131 | 138 |
132 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 139 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
OLD | NEW |