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

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

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove SizeOfVector Created 8 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 | Annotate | Revision Log
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_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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698