| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 void DesktopRootWindowHostWin::SetWindowTitle(const string16& title) { | 247 void DesktopRootWindowHostWin::SetWindowTitle(const string16& title) { |
| 248 message_handler_->SetTitle(title); | 248 message_handler_->SetTitle(title); |
| 249 } | 249 } |
| 250 | 250 |
| 251 void DesktopRootWindowHostWin::ClearNativeFocus() { | 251 void DesktopRootWindowHostWin::ClearNativeFocus() { |
| 252 message_handler_->ClearNativeFocus(); | 252 message_handler_->ClearNativeFocus(); |
| 253 } | 253 } |
| 254 | 254 |
| 255 Widget::MoveLoopResult DesktopRootWindowHostWin::RunMoveLoop( | 255 Widget::MoveLoopResult DesktopRootWindowHostWin::RunMoveLoop( |
| 256 const gfx::Point& drag_offset) { | 256 const gfx::Vector2d& drag_offset) { |
| 257 return message_handler_->RunMoveLoop(drag_offset) ? | 257 return message_handler_->RunMoveLoop(drag_offset) ? |
| 258 Widget::MOVE_LOOP_SUCCESSFUL : Widget::MOVE_LOOP_CANCELED; | 258 Widget::MOVE_LOOP_SUCCESSFUL : Widget::MOVE_LOOP_CANCELED; |
| 259 } | 259 } |
| 260 | 260 |
| 261 void DesktopRootWindowHostWin::EndMoveLoop() { | 261 void DesktopRootWindowHostWin::EndMoveLoop() { |
| 262 message_handler_->EndMoveLoop(); | 262 message_handler_->EndMoveLoop(); |
| 263 } | 263 } |
| 264 | 264 |
| 265 void DesktopRootWindowHostWin::SetVisibilityChangedAnimationsEnabled( | 265 void DesktopRootWindowHostWin::SetVisibilityChangedAnimationsEnabled( |
| 266 bool value) { | 266 bool value) { |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 739 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
| 740 internal::NativeWidgetDelegate* native_widget_delegate, | 740 internal::NativeWidgetDelegate* native_widget_delegate, |
| 741 DesktopNativeWidgetAura* desktop_native_widget_aura, | 741 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 742 const gfx::Rect& initial_bounds) { | 742 const gfx::Rect& initial_bounds) { |
| 743 return new DesktopRootWindowHostWin(native_widget_delegate, | 743 return new DesktopRootWindowHostWin(native_widget_delegate, |
| 744 desktop_native_widget_aura, | 744 desktop_native_widget_aura, |
| 745 initial_bounds); | 745 initial_bounds); |
| 746 } | 746 } |
| 747 | 747 |
| 748 } // namespace views | 748 } // namespace views |
| OLD | NEW |