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

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc

Issue 243703003: Removes win8_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
index 93f8c9b6a84481d6ec5a43036a17813129615b7a..002a54a1c89b2025c3f03ec9479611be444c39c1 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
@@ -101,32 +101,30 @@ OpaqueBrowserFrameView::OpaqueBrowserFrameView(BrowserFrame* frame,
frame_background_(new views::FrameBackground()) {
SetLayoutManager(layout_);
- if (OpaqueBrowserFrameViewLayout::ShouldAddDefaultCaptionButtons()) {
- minimize_button_ = InitWindowCaptionButton(IDR_MINIMIZE,
- IDR_MINIMIZE_H,
- IDR_MINIMIZE_P,
- IDR_MINIMIZE_BUTTON_MASK,
- IDS_ACCNAME_MINIMIZE,
- VIEW_ID_MINIMIZE_BUTTON);
- maximize_button_ = InitWindowCaptionButton(IDR_MAXIMIZE,
- IDR_MAXIMIZE_H,
- IDR_MAXIMIZE_P,
- IDR_MAXIMIZE_BUTTON_MASK,
- IDS_ACCNAME_MAXIMIZE,
- VIEW_ID_MAXIMIZE_BUTTON);
- restore_button_ = InitWindowCaptionButton(IDR_RESTORE,
- IDR_RESTORE_H,
- IDR_RESTORE_P,
- IDR_RESTORE_BUTTON_MASK,
- IDS_ACCNAME_RESTORE,
- VIEW_ID_RESTORE_BUTTON);
- close_button_ = InitWindowCaptionButton(IDR_CLOSE,
- IDR_CLOSE_H,
- IDR_CLOSE_P,
- IDR_CLOSE_BUTTON_MASK,
- IDS_ACCNAME_CLOSE,
- VIEW_ID_CLOSE_BUTTON);
- }
+ minimize_button_ = InitWindowCaptionButton(IDR_MINIMIZE,
+ IDR_MINIMIZE_H,
+ IDR_MINIMIZE_P,
+ IDR_MINIMIZE_BUTTON_MASK,
+ IDS_ACCNAME_MINIMIZE,
+ VIEW_ID_MINIMIZE_BUTTON);
+ maximize_button_ = InitWindowCaptionButton(IDR_MAXIMIZE,
+ IDR_MAXIMIZE_H,
+ IDR_MAXIMIZE_P,
+ IDR_MAXIMIZE_BUTTON_MASK,
+ IDS_ACCNAME_MAXIMIZE,
+ VIEW_ID_MAXIMIZE_BUTTON);
+ restore_button_ = InitWindowCaptionButton(IDR_RESTORE,
+ IDR_RESTORE_H,
+ IDR_RESTORE_P,
+ IDR_RESTORE_BUTTON_MASK,
+ IDS_ACCNAME_RESTORE,
+ VIEW_ID_RESTORE_BUTTON);
+ close_button_ = InitWindowCaptionButton(IDR_CLOSE,
+ IDR_CLOSE_H,
+ IDR_CLOSE_P,
+ IDR_CLOSE_BUTTON_MASK,
+ IDS_ACCNAME_CLOSE,
+ VIEW_ID_CLOSE_BUTTON);
// Initializing the TabIconView is expensive, so only do it if we need to.
if (browser_view->ShouldShowWindowIcon()) {
@@ -274,8 +272,6 @@ void OpaqueBrowserFrameView::GetWindowMask(const gfx::Size& size,
}
void OpaqueBrowserFrameView::ResetWindowControls() {
- if (!OpaqueBrowserFrameViewLayout::ShouldAddDefaultCaptionButtons())
- return;
restore_button_->SetState(views::CustomButton::STATE_NORMAL);
minimize_button_->SetState(views::CustomButton::STATE_NORMAL);
maximize_button_->SetState(views::CustomButton::STATE_NORMAL);
@@ -472,8 +468,6 @@ gfx::Size OpaqueBrowserFrameView::GetBrowserViewMinimumSize() const {
}
bool OpaqueBrowserFrameView::ShouldShowCaptionButtons() const {
- if (!OpaqueBrowserFrameViewLayout::ShouldAddDefaultCaptionButtons())
- return false;
return ShouldShowWindowTitleBar();
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698