Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc

Issue 1869163003: Refactored GlassBrowserFrameView and BrowserDesktopTreeHostWin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge error Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" 5 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 gfx::Rect OpaqueBrowserFrameView::GetBoundsForTabStrip( 147 gfx::Rect OpaqueBrowserFrameView::GetBoundsForTabStrip(
148 views::View* tabstrip) const { 148 views::View* tabstrip) const {
149 if (!tabstrip) 149 if (!tabstrip)
150 return gfx::Rect(); 150 return gfx::Rect();
151 151
152 return layout_->GetBoundsForTabStrip(tabstrip->GetPreferredSize(), width()); 152 return layout_->GetBoundsForTabStrip(tabstrip->GetPreferredSize(), width());
153 } 153 }
154 154
155 int OpaqueBrowserFrameView::GetTopInset(bool restored) const { 155 int OpaqueBrowserFrameView::GetTopInset(bool restored) const {
156 return browser_view()->IsTabStripVisible() ? 156 return browser_view()->IsTabStripVisible()
157 layout_->GetTabStripInsetsTop(restored) : 157 ? layout_->GetTabStripInsetsTop(restored)
158 layout_->NonClientTopBorderHeight(restored); 158 : layout_->NonClientTopHeight(restored);
159 } 159 }
160 160
161 int OpaqueBrowserFrameView::GetThemeBackgroundXInset() const { 161 int OpaqueBrowserFrameView::GetThemeBackgroundXInset() const {
162 return 0; 162 return 0;
163 } 163 }
164 164
165 void OpaqueBrowserFrameView::UpdateThrobber(bool running) { 165 void OpaqueBrowserFrameView::UpdateThrobber(bool running) {
166 if (window_icon_) 166 if (window_icon_)
167 window_icon_->Update(); 167 window_icon_->Update();
168 } 168 }
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 gfx::Rect side(x, y, kClientEdgeThickness, h); 827 gfx::Rect side(x, y, kClientEdgeThickness, h);
828 canvas->FillRect(side, color); 828 canvas->FillRect(side, color);
829 if (draw_bottom) { 829 if (draw_bottom) {
830 canvas->FillRect(gfx::Rect(x, y + h, w + (2 * kClientEdgeThickness), 830 canvas->FillRect(gfx::Rect(x, y + h, w + (2 * kClientEdgeThickness),
831 kClientEdgeThickness), 831 kClientEdgeThickness),
832 color); 832 color);
833 } 833 }
834 side.Offset(w + kClientEdgeThickness, 0); 834 side.Offset(w + kClientEdgeThickness, 0);
835 canvas->FillRect(side, color); 835 canvas->FillRect(side, color);
836 } 836 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698