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

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

Issue 1565243002: Fixes bug where client area would not get set correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_mac.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) 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 "build/build_config.h" 9 #include "build/build_config.h"
10 #include "third_party/skia/include/core/SkRegion.h" 10 #include "third_party/skia/include/core/SkRegion.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 params.type != Widget::InitParams::TYPE_POPUP) { 174 params.type != Widget::InitParams::TYPE_POPUP) {
175 aura::client::SetDragDropDelegate(window_, this); 175 aura::client::SetDragDropDelegate(window_, this);
176 } 176 }
177 177
178 aura::client::SetActivationDelegate(window_, this); 178 aura::client::SetActivationDelegate(window_, this);
179 179
180 window_reorderer_.reset(new WindowReorderer(window_, 180 window_reorderer_.reset(new WindowReorderer(window_,
181 GetWidget()->GetRootView())); 181 GetWidget()->GetRootView()));
182 } 182 }
183 183
184 void NativeWidgetAura::OnWidgetInitDone() {}
185
184 NonClientFrameView* NativeWidgetAura::CreateNonClientFrameView() { 186 NonClientFrameView* NativeWidgetAura::CreateNonClientFrameView() {
185 return NULL; 187 return NULL;
186 } 188 }
187 189
188 bool NativeWidgetAura::ShouldUseNativeFrame() const { 190 bool NativeWidgetAura::ShouldUseNativeFrame() const {
189 // There is only one frame type for aura. 191 // There is only one frame type for aura.
190 return false; 192 return false;
191 } 193 }
192 194
193 bool NativeWidgetAura::ShouldWindowContentsBeTransparent() const { 195 bool NativeWidgetAura::ShouldWindowContentsBeTransparent() const {
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); 1171 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont));
1170 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); 1172 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont)));
1171 return gfx::FontList(gfx::Font(caption_font.get())); 1173 return gfx::FontList(gfx::Font(caption_font.get()));
1172 #else 1174 #else
1173 return gfx::FontList(); 1175 return gfx::FontList();
1174 #endif 1176 #endif
1175 } 1177 }
1176 1178
1177 } // namespace internal 1179 } // namespace internal
1178 } // namespace views 1180 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698