| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/controls/resize_area.h" | 5 #include "ui/views/controls/resize_area.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/base/accessibility/accessible_view_state.h" | 8 #include "ui/base/accessibility/accessible_view_state.h" |
| 9 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
| 10 #include "views/controls/resize_area_delegate.h" | 10 #include "ui/views/controls/resize_area_delegate.h" |
| 11 | 11 |
| 12 #if defined(OS_LINUX) | 12 #if defined(OS_LINUX) |
| 13 #include "ui/gfx/gtk_util.h" | 13 #include "ui/gfx/gtk_util.h" |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 #if defined(USE_AURA) | 16 #if defined(USE_AURA) |
| 17 #include "ui/aura/cursor.h" | 17 #include "ui/aura/cursor.h" |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 namespace views { | 20 namespace views { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 void ResizeArea::ReportResizeAmount(int resize_amount, bool last_update) { | 86 void ResizeArea::ReportResizeAmount(int resize_amount, bool last_update) { |
| 87 gfx::Point point(resize_amount, 0); | 87 gfx::Point point(resize_amount, 0); |
| 88 View::ConvertPointToScreen(this, &point); | 88 View::ConvertPointToScreen(this, &point); |
| 89 resize_amount = point.x() - initial_position_; | 89 resize_amount = point.x() - initial_position_; |
| 90 delegate_->OnResize(base::i18n::IsRTL() ? -resize_amount : resize_amount, | 90 delegate_->OnResize(base::i18n::IsRTL() ? -resize_amount : resize_amount, |
| 91 last_update); | 91 last_update); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace views | 94 } // namespace views |
| OLD | NEW |