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

Side by Side Diff: ui/views/accessibility/ax_window_obj_wrapper.cc

Issue 1543173002: Switch to standard integer types in ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/accessibility/ax_window_obj_wrapper.h" 5 #include "ui/views/accessibility/ax_window_obj_wrapper.h"
6 6
7 #include <stddef.h>
8
7 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
8 #include "ui/accessibility/ax_node_data.h" 10 #include "ui/accessibility/ax_node_data.h"
9 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
10 #include "ui/views/accessibility/ax_aura_obj_cache.h" 12 #include "ui/views/accessibility/ax_aura_obj_cache.h"
11 #include "ui/views/widget/widget.h" 13 #include "ui/views/widget/widget.h"
12 14
13 namespace views { 15 namespace views {
14 16
15 AXWindowObjWrapper::AXWindowObjWrapper(aura::Window* window) 17 AXWindowObjWrapper::AXWindowObjWrapper(aura::Window* window)
16 : window_(window), is_alert_(false) { 18 : window_(window), is_alert_(false) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 out_node_data->location = window_->bounds(); 53 out_node_data->location = window_->bounds();
52 54
53 // Root windows currently have a non readable name (e.g. Display1234...); 55 // Root windows currently have a non readable name (e.g. Display1234...);
54 // ignore them unless the window is the only node in the tree. 56 // ignore them unless the window is the only node in the tree.
55 if (window_->parent() || window_->children().size() == 0) { 57 if (window_->parent() || window_->children().size() == 0) {
56 out_node_data->AddStringAttribute(ui::AX_ATTR_NAME, 58 out_node_data->AddStringAttribute(ui::AX_ATTR_NAME,
57 base::UTF16ToUTF8(window_->title())); 59 base::UTF16ToUTF8(window_->title()));
58 } 60 }
59 } 61 }
60 62
61 int32 AXWindowObjWrapper::GetID() { 63 int32_t AXWindowObjWrapper::GetID() {
62 return AXAuraObjCache::GetInstance()->GetID(window_); 64 return AXAuraObjCache::GetInstance()->GetID(window_);
63 } 65 }
64 66
65 void AXWindowObjWrapper::OnWindowDestroying(aura::Window* window) { 67 void AXWindowObjWrapper::OnWindowDestroying(aura::Window* window) {
66 AXAuraObjCache::GetInstance()->Remove(window); 68 AXAuraObjCache::GetInstance()->Remove(window);
67 } 69 }
68 70
69 } // namespace views 71 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698