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

Side by Side Diff: ui/views/widget/native_widget_aura.cc

Issue 708133002: win: build fixes (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: . Created 6 years, 1 month 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
« no previous file with comments | « ui/views/controls/menu/menu_config_win.cc ('k') | no next file » | 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 "ui/views/widget/native_widget_aura.h" 5 #include "ui/views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 } 1116 }
1117 1117
1118 // static 1118 // static
1119 bool NativeWidgetPrivate::IsMouseButtonDown() { 1119 bool NativeWidgetPrivate::IsMouseButtonDown() {
1120 return aura::Env::GetInstance()->IsMouseButtonDown(); 1120 return aura::Env::GetInstance()->IsMouseButtonDown();
1121 } 1121 }
1122 1122
1123 // static 1123 // static
1124 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { 1124 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() {
1125 #if defined(OS_WIN) 1125 #if defined(OS_WIN)
1126 NONCLIENTMETRICS ncm; 1126 NONCLIENTMETRICS_XP ncm;
1127 base::win::GetNonClientMetrics(&ncm); 1127 base::win::GetNonClientMetrics(&ncm);
1128 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); 1128 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont));
1129 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); 1129 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont)));
1130 return gfx::FontList(gfx::Font(caption_font)); 1130 return gfx::FontList(gfx::Font(caption_font));
1131 #else 1131 #else
1132 return gfx::FontList(); 1132 return gfx::FontList();
1133 #endif 1133 #endif
1134 } 1134 }
1135 1135
1136 } // namespace internal 1136 } // namespace internal
1137 } // namespace views 1137 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_config_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698