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

Side by Side Diff: views/window/custom_frame_view.cc

Issue 6386009: Remove app/win/win_util.h,cc etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with NSApp changes in r73581 Created 9 years, 10 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 | « views/widget/widget_win.cc ('k') | views/window/window_win.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/window/custom_frame_view.h" 5 #include "views/window/custom_frame_view.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "gfx/canvas.h" 8 #include "gfx/canvas.h"
9 #include "gfx/font.h" 9 #include "gfx/font.h"
10 #include "gfx/path.h" 10 #include "gfx/path.h"
11 #include "grit/app_resources.h" 11 #include "grit/app_resources.h"
12 #include "grit/app_strings.h" 12 #include "grit/app_strings.h"
13 #include "ui/base/l10n/l10n_util.h" 13 #include "ui/base/l10n/l10n_util.h"
14 #include "ui/base/resource/resource_bundle.h" 14 #include "ui/base/resource/resource_bundle.h"
15 #include "views/window/client_view.h" 15 #include "views/window/client_view.h"
16 #include "views/window/window_shape.h" 16 #include "views/window/window_shape.h"
17 #include "views/window/window_delegate.h" 17 #include "views/window/window_delegate.h"
18 18
19 #if defined(OS_LINUX) 19 #if defined(OS_LINUX)
20 #include "views/window/hit_test.h" 20 #include "views/window/hit_test.h"
21 #endif 21 #endif
22 22
23 #if defined(OS_WIN) 23 #if defined(OS_WIN)
24 #include "app/win/win_util.h" 24 #include "views/window/window_win.h"
25 #endif 25 #endif
26 26
27 namespace views { 27 namespace views {
28 28
29 // static 29 // static
30 gfx::Font* CustomFrameView::title_font_ = NULL; 30 gfx::Font* CustomFrameView::title_font_ = NULL;
31 31
32 namespace { 32 namespace {
33 // The frame border is only visible in restored mode and is hardcoded to 4 px on 33 // The frame border is only visible in restored mode and is hardcoded to 4 px on
34 // each side regardless of the system window border size. 34 // each side regardless of the system window border size.
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 client_view_bounds_.SetRect(border_thickness, top_height, 564 client_view_bounds_.SetRect(border_thickness, top_height,
565 std::max(0, width() - (2 * border_thickness)), 565 std::max(0, width() - (2 * border_thickness)),
566 std::max(0, height() - top_height - border_thickness)); 566 std::max(0, height() - top_height - border_thickness));
567 } 567 }
568 568
569 // static 569 // static
570 void CustomFrameView::InitClass() { 570 void CustomFrameView::InitClass() {
571 static bool initialized = false; 571 static bool initialized = false;
572 if (!initialized) { 572 if (!initialized) {
573 #if defined(OS_WIN) 573 #if defined(OS_WIN)
574 title_font_ = new gfx::Font(app::win::GetWindowTitleFont()); 574 title_font_ = new gfx::Font(WindowWin::GetWindowTitleFont());
575 #elif defined(OS_LINUX) 575 #elif defined(OS_LINUX)
576 // TODO(ben): need to resolve what font this is. 576 // TODO(ben): need to resolve what font this is.
577 title_font_ = new gfx::Font(); 577 title_font_ = new gfx::Font();
578 #endif 578 #endif
579 initialized = true; 579 initialized = true;
580 } 580 }
581 } 581 }
582 582
583 } // namespace views 583 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/widget_win.cc ('k') | views/window/window_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698