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

Side by Side Diff: views/view.cc

Issue 261044: Accessibility information from the renderer was not being returned to tools l... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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
« no previous file with comments | « views/accessibility/view_accessibility_wrapper.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « views/accessibility/view_accessibility_wrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698