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

Side by Side Diff: ash/wm/custom_frame_view_ash.cc

Issue 9618022: Ash: Use translucent frames by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leak in CustomFrameViewAsh Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ash/shell.cc ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ash/wm/custom_frame_view_ash.h" 5 #include "ash/wm/custom_frame_view_ash.h"
6 6
7 #include "ash/wm/frame_painter.h" 7 #include "ash/wm/frame_painter.h"
8 #include "grit/ui_resources.h" 8 #include "grit/ui_resources.h"
9 #include "grit/ui_strings.h" // Accessibility names 9 #include "grit/ui_strings.h" // Accessibility names
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // CustomFrameViewAsh, private: 149 // CustomFrameViewAsh, private:
150 150
151 int CustomFrameViewAsh::NonClientTopBorderHeight() const { 151 int CustomFrameViewAsh::NonClientTopBorderHeight() const {
152 // Reserve enough space to see the buttons, including any offset from top. 152 // Reserve enough space to see the buttons, including any offset from top.
153 return close_button_->bounds().bottom(); 153 return close_button_->bounds().bottom();
154 } 154 }
155 155
156 // static 156 // static
157 void CustomFrameViewAsh::InitClass() { 157 void CustomFrameViewAsh::InitClass() {
158 static bool initialized = false; 158 static bool initialized = false;
159 if (!initialized) 159 if (!initialized) {
160 title_font_ = new gfx::Font(views::NativeWidgetAura::GetWindowTitleFont()); 160 title_font_ = new gfx::Font(views::NativeWidgetAura::GetWindowTitleFont());
161 initialized = true;
162 }
161 } 163 }
162 164
163 } // namespace internal 165 } // namespace internal
164 } // namespace ash 166 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698