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

Side by Side Diff: ui/views/widget/native_widget_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: RenderText fixup 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/native_widget_win.h" 5 #include "ui/views/widget/native_widget_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 464
465 gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const { 465 gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const {
466 return gfx::Screen::GetNativeScreen()->GetDisplayNearestWindow( 466 return gfx::Screen::GetNativeScreen()->GetDisplayNearestWindow(
467 GetNativeView()).work_area(); 467 GetNativeView()).work_area();
468 } 468 }
469 469
470 void NativeWidgetWin::SetInactiveRenderingDisabled(bool value) { 470 void NativeWidgetWin::SetInactiveRenderingDisabled(bool value) {
471 } 471 }
472 472
473 Widget::MoveLoopResult NativeWidgetWin::RunMoveLoop( 473 Widget::MoveLoopResult NativeWidgetWin::RunMoveLoop(
474 const gfx::Point& drag_offset) { 474 const gfx::Vector2d& drag_offset) {
475 return message_handler_->RunMoveLoop(drag_offset) ? 475 return message_handler_->RunMoveLoop(drag_offset) ?
476 Widget::MOVE_LOOP_SUCCESSFUL : Widget::MOVE_LOOP_CANCELED; 476 Widget::MOVE_LOOP_SUCCESSFUL : Widget::MOVE_LOOP_CANCELED;
477 } 477 }
478 478
479 void NativeWidgetWin::EndMoveLoop() { 479 void NativeWidgetWin::EndMoveLoop() {
480 message_handler_->EndMoveLoop(); 480 message_handler_->EndMoveLoop();
481 } 481 }
482 482
483 void NativeWidgetWin::SetVisibilityChangedAnimationsEnabled(bool value) { 483 void NativeWidgetWin::SetVisibilityChangedAnimationsEnabled(bool value) {
484 message_handler_->SetVisibilityChangedAnimationsEnabled(value); 484 message_handler_->SetVisibilityChangedAnimationsEnabled(value);
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 // static 1017 // static
1018 bool NativeWidgetPrivate::IsTouchDown() { 1018 bool NativeWidgetPrivate::IsTouchDown() {
1019 // This currently isn't necessary because we're not generating touch events on 1019 // This currently isn't necessary because we're not generating touch events on
1020 // windows. When we do, this will need to be updated. 1020 // windows. When we do, this will need to be updated.
1021 return false; 1021 return false;
1022 } 1022 }
1023 1023
1024 } // namespace internal 1024 } // namespace internal
1025 1025
1026 } // namespace views 1026 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698