OLD | NEW |
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_root_window_host_win.h" | 5 #include "ui/views/widget/desktop_root_window_host_win.h" |
6 | 6 |
7 #include "third_party/skia/include/core/SkPath.h" | 7 #include "third_party/skia/include/core/SkPath.h" |
8 #include "third_party/skia/include/core/SkRegion.h" | 8 #include "third_party/skia/include/core/SkRegion.h" |
9 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
10 #include "ui/aura/desktop/desktop_activation_client.h" | 10 #include "ui/aura/desktop/desktop_activation_client.h" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 245 |
246 void DesktopRootWindowHostWin::SetWindowTitle(const string16& title) { | 246 void DesktopRootWindowHostWin::SetWindowTitle(const string16& title) { |
247 message_handler_->SetTitle(title); | 247 message_handler_->SetTitle(title); |
248 } | 248 } |
249 | 249 |
250 void DesktopRootWindowHostWin::ClearNativeFocus() { | 250 void DesktopRootWindowHostWin::ClearNativeFocus() { |
251 message_handler_->ClearNativeFocus(); | 251 message_handler_->ClearNativeFocus(); |
252 } | 252 } |
253 | 253 |
254 Widget::MoveLoopResult DesktopRootWindowHostWin::RunMoveLoop( | 254 Widget::MoveLoopResult DesktopRootWindowHostWin::RunMoveLoop( |
255 const gfx::Point& drag_offset) { | 255 const gfx::Vector2d& drag_offset) { |
256 return message_handler_->RunMoveLoop(drag_offset) ? | 256 return message_handler_->RunMoveLoop(drag_offset) ? |
257 Widget::MOVE_LOOP_SUCCESSFUL : Widget::MOVE_LOOP_CANCELED; | 257 Widget::MOVE_LOOP_SUCCESSFUL : Widget::MOVE_LOOP_CANCELED; |
258 } | 258 } |
259 | 259 |
260 void DesktopRootWindowHostWin::EndMoveLoop() { | 260 void DesktopRootWindowHostWin::EndMoveLoop() { |
261 message_handler_->EndMoveLoop(); | 261 message_handler_->EndMoveLoop(); |
262 } | 262 } |
263 | 263 |
264 void DesktopRootWindowHostWin::SetVisibilityChangedAnimationsEnabled( | 264 void DesktopRootWindowHostWin::SetVisibilityChangedAnimationsEnabled( |
265 bool value) { | 265 bool value) { |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 738 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
739 internal::NativeWidgetDelegate* native_widget_delegate, | 739 internal::NativeWidgetDelegate* native_widget_delegate, |
740 DesktopNativeWidgetAura* desktop_native_widget_aura, | 740 DesktopNativeWidgetAura* desktop_native_widget_aura, |
741 const gfx::Rect& initial_bounds) { | 741 const gfx::Rect& initial_bounds) { |
742 return new DesktopRootWindowHostWin(native_widget_delegate, | 742 return new DesktopRootWindowHostWin(native_widget_delegate, |
743 desktop_native_widget_aura, | 743 desktop_native_widget_aura, |
744 initial_bounds); | 744 initial_bounds); |
745 } | 745 } |
746 | 746 |
747 } // namespace views | 747 } // namespace views |
OLD | NEW |