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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 257 |
258 void DesktopRootWindowHostWin::SetWindowTitle(const string16& title) { | 258 void DesktopRootWindowHostWin::SetWindowTitle(const string16& title) { |
259 message_handler_->SetTitle(title); | 259 message_handler_->SetTitle(title); |
260 } | 260 } |
261 | 261 |
262 void DesktopRootWindowHostWin::ClearNativeFocus() { | 262 void DesktopRootWindowHostWin::ClearNativeFocus() { |
263 message_handler_->ClearNativeFocus(); | 263 message_handler_->ClearNativeFocus(); |
264 } | 264 } |
265 | 265 |
266 Widget::MoveLoopResult DesktopRootWindowHostWin::RunMoveLoop( | 266 Widget::MoveLoopResult DesktopRootWindowHostWin::RunMoveLoop( |
267 const gfx::Point& drag_offset) { | 267 const gfx::Vector2d& drag_offset) { |
268 return message_handler_->RunMoveLoop(drag_offset) ? | 268 return message_handler_->RunMoveLoop(drag_offset) ? |
269 Widget::MOVE_LOOP_SUCCESSFUL : Widget::MOVE_LOOP_CANCELED; | 269 Widget::MOVE_LOOP_SUCCESSFUL : Widget::MOVE_LOOP_CANCELED; |
270 } | 270 } |
271 | 271 |
272 void DesktopRootWindowHostWin::EndMoveLoop() { | 272 void DesktopRootWindowHostWin::EndMoveLoop() { |
273 message_handler_->EndMoveLoop(); | 273 message_handler_->EndMoveLoop(); |
274 } | 274 } |
275 | 275 |
276 void DesktopRootWindowHostWin::SetVisibilityChangedAnimationsEnabled( | 276 void DesktopRootWindowHostWin::SetVisibilityChangedAnimationsEnabled( |
277 bool value) { | 277 bool value) { |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 759 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
760 internal::NativeWidgetDelegate* native_widget_delegate, | 760 internal::NativeWidgetDelegate* native_widget_delegate, |
761 DesktopNativeWidgetAura* desktop_native_widget_aura, | 761 DesktopNativeWidgetAura* desktop_native_widget_aura, |
762 const gfx::Rect& initial_bounds) { | 762 const gfx::Rect& initial_bounds) { |
763 return new DesktopRootWindowHostWin(native_widget_delegate, | 763 return new DesktopRootWindowHostWin(native_widget_delegate, |
764 desktop_native_widget_aura, | 764 desktop_native_widget_aura, |
765 initial_bounds); | 765 initial_bounds); |
766 } | 766 } |
767 | 767 |
768 } // namespace views | 768 } // namespace views |
OLD | NEW |