| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/view.h" | 5 #include "views/view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #ifndef NDEBUG | 8 #ifndef NDEBUG |
| 9 #include <iostream> | 9 #include <iostream> |
| 10 #endif | 10 #endif |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 } | 67 } |
| 68 | 68 |
| 69 View::~View() { | 69 View::~View() { |
| 70 int c = static_cast<int>(child_views_.size()); | 70 int c = static_cast<int>(child_views_.size()); |
| 71 while (--c >= 0) { | 71 while (--c >= 0) { |
| 72 if (child_views_[c]->IsParentOwned()) | 72 if (child_views_[c]->IsParentOwned()) |
| 73 delete child_views_[c]; | 73 delete child_views_[c]; |
| 74 else | 74 else |
| 75 child_views_[c]->SetParent(NULL); | 75 child_views_[c]->SetParent(NULL); |
| 76 } | 76 } |
| 77 |
| 78 #if defined(OS_WIN) |
| 79 if (accessibility_.get()) { |
| 80 accessibility_->Uninitialize(); |
| 81 } |
| 82 #endif |
| 77 } | 83 } |
| 78 | 84 |
| 79 ///////////////////////////////////////////////////////////////////////////// | 85 ///////////////////////////////////////////////////////////////////////////// |
| 80 // | 86 // |
| 81 // View - sizing | 87 // View - sizing |
| 82 // | 88 // |
| 83 ///////////////////////////////////////////////////////////////////////////// | 89 ///////////////////////////////////////////////////////////////////////////// |
| 84 | 90 |
| 85 gfx::Rect View::GetBounds(PositionMirroringSettings settings) const { | 91 gfx::Rect View::GetBounds(PositionMirroringSettings settings) const { |
| 86 gfx::Rect bounds(bounds_); | 92 gfx::Rect bounds(bounds_); |
| (...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 start_x = start_y = 0; | 1435 start_x = start_y = 0; |
| 1430 } | 1436 } |
| 1431 | 1437 |
| 1432 void View::DragInfo::PossibleDrag(int x, int y) { | 1438 void View::DragInfo::PossibleDrag(int x, int y) { |
| 1433 possible_drag = true; | 1439 possible_drag = true; |
| 1434 start_x = x; | 1440 start_x = x; |
| 1435 start_y = y; | 1441 start_y = y; |
| 1436 } | 1442 } |
| 1437 | 1443 |
| 1438 } // namespace | 1444 } // namespace |
| OLD | NEW |