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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 32393002: Stack at top functionality for Aura-based windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Stack at top functionality for Aura-based windows Created 7 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
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/desktop_aura/desktop_root_window_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h"
6 6
7 #include "base/win/metro.h" 7 #include "base/win/metro.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 bool DesktopRootWindowHostWin::IsVisible() const { 224 bool DesktopRootWindowHostWin::IsVisible() const {
225 return message_handler_->IsVisible(); 225 return message_handler_->IsVisible();
226 } 226 }
227 227
228 void DesktopRootWindowHostWin::SetSize(const gfx::Size& size) { 228 void DesktopRootWindowHostWin::SetSize(const gfx::Size& size) {
229 gfx::Size size_in_pixels = gfx::win::DIPToScreenSize(size); 229 gfx::Size size_in_pixels = gfx::win::DIPToScreenSize(size);
230 message_handler_->SetSize(size_in_pixels); 230 message_handler_->SetSize(size_in_pixels);
231 } 231 }
232 232
233 void DesktopRootWindowHostWin::StackAtTop() {
234 message_handler_->StackAtTop();
235 }
236
233 void DesktopRootWindowHostWin::CenterWindow(const gfx::Size& size) { 237 void DesktopRootWindowHostWin::CenterWindow(const gfx::Size& size) {
234 gfx::Size size_in_pixels = gfx::win::DIPToScreenSize(size); 238 gfx::Size size_in_pixels = gfx::win::DIPToScreenSize(size);
235 message_handler_->CenterWindow(size_in_pixels); 239 message_handler_->CenterWindow(size_in_pixels);
236 } 240 }
237 241
238 void DesktopRootWindowHostWin::GetWindowPlacement( 242 void DesktopRootWindowHostWin::GetWindowPlacement(
239 gfx::Rect* bounds, 243 gfx::Rect* bounds,
240 ui::WindowShowState* show_state) const { 244 ui::WindowShowState* show_state) const {
241 message_handler_->GetWindowPlacement(bounds, show_state); 245 message_handler_->GetWindowPlacement(bounds, show_state);
242 *bounds = gfx::win::ScreenToDIPRect(*bounds); 246 *bounds = gfx::win::ScreenToDIPRect(*bounds);
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 DesktopRootWindowHost* DesktopRootWindowHost::Create( 917 DesktopRootWindowHost* DesktopRootWindowHost::Create(
914 internal::NativeWidgetDelegate* native_widget_delegate, 918 internal::NativeWidgetDelegate* native_widget_delegate,
915 DesktopNativeWidgetAura* desktop_native_widget_aura, 919 DesktopNativeWidgetAura* desktop_native_widget_aura,
916 const gfx::Rect& initial_bounds) { 920 const gfx::Rect& initial_bounds) {
917 return new DesktopRootWindowHostWin(native_widget_delegate, 921 return new DesktopRootWindowHostWin(native_widget_delegate,
918 desktop_native_widget_aura, 922 desktop_native_widget_aura,
919 initial_bounds); 923 initial_bounds);
920 } 924 }
921 925
922 } // namespace views 926 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698